[yum-cvs] yum cli.py,1.241.2.16,1.241.2.17

Seth Vidal skvidal at linux.duke.edu
Sun Apr 8 03:53:54 UTC 2007


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

Modified Files:
      Tag: yum-3_0_X
	cli.py 
Log Message:
fix for rh bug: 235572 - when doing install-by-dep make sure we look at
only the best pkgs from the lists - which means sensible archs and best
versions



Index: cli.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/cli.py,v
retrieving revision 1.241.2.16
retrieving revision 1.241.2.17
diff -u -r1.241.2.16 -r1.241.2.17
--- cli.py	2 Apr 2007 18:09:07 -0000	1.241.2.16
+++ cli.py	8 Apr 2007 03:53:52 -0000	1.241.2.17
@@ -572,7 +572,8 @@
                 except yum.Errors.YumBaseError, e:
                     self.logger.critical(_('No Match for argument: %s') % arg)
                 else:
-                    for mypkg in mypkgs:
+                    mybestpkgs = self.bestPackagesFromList(mypkgs)
+                    for mypkg in mybestpkgs:
                         if self._installable(mypkg, True):
                             self.verbose_logger.log(yum.logginglevels.DEBUG_3,
                                     'Solving package %s is installable, not going through the rest', mypkg)




More information about the Yum-cvs-commits mailing list