[yum-cvs] yum/rpmUtils updates.py,1.24,1.25
Seth Vidal
skvidal at linux.duke.edu
Sun Apr 8 20:46:35 UTC 2007
Update of /home/groups/yum/cvs/yum/rpmUtils
In directory login1.linux.duke.edu:/tmp/cvs-serv13096
Modified Files:
updates.py
Log Message:
closes rh bug:235632
make sure we consider noarch pkgs when looking at things that can update
noarch->x86_64 and x86_64->noarch
Index: updates.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/rpmUtils/updates.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- updates.py 5 Dec 2006 00:40:51 -0000 1.24
+++ updates.py 8 Apr 2007 20:46:33 -0000 1.25
@@ -389,10 +389,12 @@
# one for the multiarch itself and one for the compat arch
# ie: x86_64 and athlon(i686-i386) - we don't want to descend
# x86_64->i686
+ # however, we do want to descend x86_64->noarch, sadly.
+
archlists = []
if rpmUtils.arch.isMultiLibArch(arch=self.myarch):
if rpmUtils.arch.multilibArches.has_key(self.myarch):
- biarches = [self.myarch]
+ biarches = [self.myarch, 'noarch']
else:
biarches = [self.myarch, rpmUtils.arch.arches[self.myarch]]
@@ -417,7 +419,6 @@
tmplist = []
for (a, e, v, r) in newpkgs[(n, None)]:
tmplist.append((n, a, e, v, r))
-
highestavailablepkgs = self.returnHighestVerFromAllArchsByName(n,
thisarchlist, tmplist)
@@ -451,7 +452,7 @@
rpm_a = rpmUtils.arch.getBestArchFromList(instarchs, myarch=self.myarch)
a = rpmUtils.arch.getBestArchFromList(availarchs, myarch=self.myarch)
-
+
if rpm_a is None or a is None:
continue
More information about the Yum-cvs-commits
mailing list