1 Avoid looking up files or directories that this package provides
3 diff -u --new-file --recursive rpm-5.2.0_vanilla/lib/depends.c rpm-5.2.0_parentdir-vs-requires/lib/depends.c
4 --- rpm-5.2.0_vanilla/lib/depends.c 2009-05-23 01:23:46.000000000 +0000
5 +++ rpm-5.2.0_parentdir-vs-requires/lib/depends.c 2009-09-22 17:00:24.880956271 +0000
9 nsType NSType = rpmdsNSType(requires);
10 + const char * N = rpmdsN(requires);
12 int teType = rpmteType(p);
14 @@ -2128,6 +2129,23 @@
18 + /* Avoid looking up files/directories that are "owned" by _THIS_ package. */
20 + rpmfi fi = rpmteFI(p, RPMTAG_BASENAMES);
23 + fi = rpmfiInit(fi, 0);
24 + while (rpmfiNext(fi) >= 0) {
25 + const char * fn = rpmfiFN(fi);
35 pkgKey = RPMAL_NOMATCH;
36 key = rpmalSatisfiesDepend(al, requires, &pkgKey);