From 2cb102f35e995d4e1a6f4a14b09e30ecfe6c2513 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 27 Jun 2012 11:08:25 +0300 Subject: [PATCH] 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. --- lib/depends.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.7.4