lib/depends.c: adjust provides check for versioned paths

(cherry picked from commit fb5f3e4c88)
This commit is contained in:
Alexey Tourbin 2008-05-12 22:23:45 +04:00
parent 9889b7db55
commit a15d548dec

View File

@ -1168,8 +1168,7 @@ static int unsatisfiedDepend(rpmTransactionSet ts,
/* XXX only the installer does not have the database open here. */ /* XXX only the installer does not have the database open here. */
if (ts->rpmdb != NULL) { if (ts->rpmdb != NULL) {
if (*keyName == '/') { if (*keyName == '/' && (keyFlags & RPMSENSE_SENSEMASK) == 0) {
/* keyFlags better be 0! */
mi = rpmdbInitIterator(ts->rpmdb, RPMTAG_BASENAMES, keyName, 0); mi = rpmdbInitIterator(ts->rpmdb, RPMTAG_BASENAMES, keyName, 0);