[yum-cvs] yum/yum __init__.py,1.218,1.219

Jeremy Katz katzj at linux.duke.edu
Mon Jul 31 20:27:58 UTC 2006


Update of /home/groups/yum/cvs/yum/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv28483/yum

Modified Files:
	__init__.py 
Log Message:
ensure that we do the arch reduction on yum.install(pattern=) also (rh#200346)


Index: __init__.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/yum/__init__.py,v
retrieving revision 1.218
retrieving revision 1.219
diff -u -r1.218 -r1.219
--- __init__.py	25 Jul 2006 14:40:36 -0000	1.218
+++ __init__.py	31 Jul 2006 20:27:56 -0000	1.219
@@ -1712,7 +1712,7 @@
         # if there's not a multi or single lib, then we want the noarch
         else:
             returnlist.append(no)
-        
+
         return returnlist
 
 
@@ -1753,8 +1753,8 @@
                      epoch=nevra_dict['epoch'], arch=nevra_dict['arch'],
                      ver=nevra_dict['version'], rel=nevra_dict['release'])
                 
-                if pkgs:
-                    pkgs = self.bestPackagesFromList(pkgs)
+            if pkgs:
+                pkgs = self.bestPackagesFromList(pkgs)
 
         if len(pkgs) == 0:
             #FIXME - this is where we could check to see if it already installed




More information about the Yum-cvs-commits mailing list