Fix obsoletes-thinko in rpmdbProvides()

- dbtag cannot possibly be on obsoletes here, we need to look at deptag
  instead. This thinko in commit 5f1ec21518
  renders that whole commit useless. Doh.
This commit is contained in:
Panu Matilainen 2012-06-27 11:08:25 +03:00
parent 5322c3bd4b
commit 2cb102f35e
1 changed files with 1 additions and 1 deletions

View 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,