2007-01-26 23:12:24 +01:00
|
|
|
Revert upstream change that uses package provides when searching
|
|
|
|
for obsoleted packages. It's just too dangerous.
|
|
|
|
|
|
|
|
--- ./lib/depends.c.orig 2005-12-14 19:51:34.000000000 +0000
|
|
|
|
+++ ./lib/depends.c 2006-01-27 21:05:13.000000000 +0000
|
|
|
|
@@ -294,7 +313,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. */
|
|
|
|
@@ -336,7 +355,7 @@ addheader:
|
|
|
|
if (Name[0] == '/')
|
|
|
|
mi = rpmtsInitIterator(ts, RPMTAG_BASENAMES, Name, 0);
|
|
|
|
else
|
|
|
|
- mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0);
|
2007-04-26 19:02:20 +02:00
|
|
|
+ mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0);
|
2007-01-26 23:12:24 +01:00
|
|
|
|
|
|
|
xx = rpmdbPruneIterator(mi,
|
|
|
|
ts->removedPackages, ts->numRemovedPackages, 1);
|