addReqProv: fix optimization of subpackage self-requirements

Optimization of subpackage self-requirements never worked before because
version-release is normally not defined for subpackages at parse time.
This commit is contained in:
Дмитрий Левин 2011-03-14 01:49:42 +00:00
parent 3f500eb080
commit 37ca0532c0

View File

@ -487,6 +487,8 @@ int addReqProv(/*@unused@*/ Spec spec, Header h,
"", depEVR, depFlags))
skip = 1;
}
else
skip = 1;
if (skip)
rpmMessage (RPMMESS_DEBUG,
"new dep \"%s\" is the package name, optimized out\n",