Print 'obsoleted by' warnings coming from upper level repositories and print 'obsoletes' warning for obsoletions in current repository
This commit is contained in:
parent
7bc65d8d44
commit
4f2abc0fbc
@ -255,10 +255,11 @@ handleObsoletedPackages(struct configTag *ct, int archidx)
|
|||||||
prov->provider[i]->obsoleteflags[j],
|
prov->provider[i]->obsoleteflags[j],
|
||||||
buf)) continue;
|
buf)) continue;
|
||||||
}
|
}
|
||||||
if (prov->provider[k]->altrepository == ct->repository_level) {
|
/* print 'obsoletes' warning for binary packages belonging to target repository,
|
||||||
|
and 'obsoleted by' for all obsoletions in upper level repositories */
|
||||||
|
if (prov->provider[k]->altrepository != ct->repository_level) {
|
||||||
currheader = prov->provider[k]->sourceheader->firstchild[archidx];
|
currheader = prov->provider[k]->sourceheader->firstchild[archidx];
|
||||||
while (currheader) {
|
while (currheader) {
|
||||||
/* print 'obsoleted by' warning only for binary packages belonging to target repository */
|
|
||||||
if (!strcmp(currheader->name, prov->provider[k]->name)) {
|
if (!strcmp(currheader->name, prov->provider[k]->name)) {
|
||||||
snprintf(buf, PATH_MAX, "%s(%s,%s) obsoleted by %s(%s,%s)",
|
snprintf(buf, PATH_MAX, "%s(%s,%s) obsoleted by %s(%s,%s)",
|
||||||
prov->provider[k]->name,
|
prov->provider[k]->name,
|
||||||
@ -273,8 +274,7 @@ handleObsoletedPackages(struct configTag *ct, int archidx)
|
|||||||
}
|
}
|
||||||
currheader = currheader -> nextbrother;
|
currheader = currheader -> nextbrother;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
if (prov->provider[i]->altrepository == ct->repository_level) {
|
|
||||||
snprintf(buf, PATH_MAX, "%s(%s,%s) obsoletes %s(%s,%s)",
|
snprintf(buf, PATH_MAX, "%s(%s,%s) obsoletes %s(%s,%s)",
|
||||||
prov->provider[i]->name,
|
prov->provider[i]->name,
|
||||||
prov->provider[i]->arch,
|
prov->provider[i]->arch,
|
||||||
|
Loading…
Reference in New Issue
Block a user