Fix obsoletes-thinko in rpmdbProvides()
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 27 Jun 2012 08:08:25 +0000 (11:08 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 3 Oct 2012 07:05:02 +0000 (10:05 +0300)
- dbtag cannot possibly be on obsoletes here, we need to look at deptag
  instead. This thinko in commit 5f1ec21518078e599b2499cf1ff852837ec33df7
  renders that whole commit useless. Doh.
(cherry picked from commit 2cb102f35e995d4e1a6f4a14b09e30ecfe6c2513)

lib/depends.c

index de1a2f1..f30cc93 100644 (file)
@@ -437,7 +437,7 @@ static int rpmdbProvides(rpmts ts, depCache dcache, rpmds dep)
        mi = rpmtsPrunedIterator(ts, dbtag, Name, prune);
        while ((h = rpmdbNextIterator(mi)) != NULL) {
            int match;
-           if (dbtag == RPMDBI_OBSOLETENAME) {
+           if (deptag == RPMDBI_OBSOLETENAME) {
                match = rpmdsNVRMatchesDep(h, dep, _rpmds_nopromote);
            } else {
                match = rpmdsMatchesDep(h, rpmdbGetIteratorFileNum(mi), dep,