From: Panu Matilainen Date: Wed, 27 Jun 2012 08:08:25 +0000 (+0300) Subject: Fix obsoletes-thinko in rpmdbProvides() X-Git-Tag: rpm-4.11.0-alpha~303 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2cb102f35e995d4e1a6f4a14b09e30ecfe6c2513;p=platform%2Fupstream%2Frpm.git Fix obsoletes-thinko in rpmdbProvides() - 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. --- diff --git a/lib/depends.c b/lib/depends.c index de1a2f1..f30cc93 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -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,