Don't version compare obsolete with package header
authorpauln <devnull@localhost>
Mon, 4 Oct 2004 15:03:43 +0000 (15:03 +0000)
committerpauln <devnull@localhost>
Mon, 4 Oct 2004 15:03:43 +0000 (15:03 +0000)
CVS patchset: 7427
CVS date: 2004/10/04 15:03:43

lib/depends.c

index 19e1a77..5d76b2b 100644 (file)
@@ -305,8 +305,7 @@ int rpmtsAddInstallElement(rpmts ts, Header h,
             */
            if (rpmdsEVR(obsoletes) == NULL
             || rpmdsAnyMatchesDep(oh, obsoletes, _rpmds_nopromote))
-               if (rpmVersionCompare(h, oh))
-                   xx = removePackage(ts, oh, rpmdbGetIteratorOffset(mi), pkgKey);
+               xx = removePackage(ts, oh, rpmdbGetIteratorOffset(mi), pkgKey);
        }
        mi = rpmdbFreeIterator(mi);
     }