[yum-commits] Branch 'yum-3_2_X' - yum/__init__.py
skvidal at osuosl.org
skvidal at osuosl.org
Tue Dec 16 22:35:02 UTC 2008
yum/__init__.py | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit e424083c808c89028a00efe796cf3c67791f27be
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Tue Dec 16 17:33:44 2008 -0500
add in the oldpackage filter if we get into a place where we're going to
install a package but it is not newer than something we have installed.
diff --git a/yum/__init__.py b/yum/__init__.py
index 4a3e573..27eb5c2 100644
--- a/yum/__init__.py
+++ b/yum/__init__.py
@@ -2571,6 +2571,14 @@ class YumBase(depsolve.Depsolve):
# at this point we are going to mark the pkg to be installed, make sure
+ # it's not an older package that is allowed in due to multiple installs
+ # or some other oddity. If it is - then modify the problem filter to cope
+
+ for ipkg in self.rpmdb.searchNevra(name=po.name, arch=po.arch):
+ if ipkg.EVR > po.EVR:
+ self.tsInfo.probFilterFlags.append(rpm.RPMPROB_FILTER_OLDPACKAGE)
+ break
+
# it doesn't obsolete anything. If it does, mark that in the tsInfo, too
if po.pkgtup in self.up.getObsoletesList(name=po.name, arch=po.arch):
for obsoletee in self._find_obsoletees(po):
More information about the Yum-commits
mailing list