Don't treat provides as implicit obsoletes (rhbz#111071 etc).
This isn't really desired behavior by anybody. Patch from OpenSuSE / Michael Schroeder
This commit is contained in:
parent
30234b3737
commit
036e9e6dcb
|
@ -306,7 +306,7 @@ addheader:
|
|||
|
||||
/* On upgrade, erase older packages of same color (if any). */
|
||||
|
||||
mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, rpmteN(p), 0);
|
||||
mi = rpmtsInitIterator(ts, RPMTAG_NAME, rpmteN(p), 0);
|
||||
while((oh = rpmdbNextIterator(mi)) != NULL) {
|
||||
|
||||
/* Ignore colored packages not in our rainbow. */
|
||||
|
@ -348,7 +348,7 @@ addheader:
|
|||
if (Name[0] == '/')
|
||||
mi = rpmtsInitIterator(ts, RPMTAG_BASENAMES, Name, 0);
|
||||
else
|
||||
mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0);
|
||||
mi = rpmtsInitIterator(ts, RPMTAG_NAME, Name, 0);
|
||||
|
||||
xx = rpmdbPruneIterator(mi,
|
||||
ts->removedPackages, ts->numRemovedPackages, 1);
|
||||
|
|
Loading…
Reference in New Issue