resolveFirstLevelDependencies: don't fall in update case in obsolete check for secondary archs

This commit is contained in:
Silvan Calarco 2013-01-09 15:18:39 +01:00
parent 34f9295baf
commit 55afaf208c

View File

@ -499,7 +499,9 @@ resolveFirstLevelDependencies(struct configTag *ct, int archidx)
/* warn about provides provided by obsoleted packages */
k=0;
for (j = 0; j < provided->numproviders; j++) {
if (provided->provider[j]->obsoleted && !currheader->obsoleted) k++;
if (provided->provider[j]->obsoleted &&
!provided->provider[j]->sourceheader->updatingparent && // don't fall in case above
!currheader->obsoleted) k++;
}
if (k == provided->numproviders) { // all provides are obsoleted
snprintf(warning, PATH_MAX, "%s(%s,%s) requires %s which is only provided by obsoleted package(s):",