[yum-commits] Branch 'yum-3_2_X' - 2 commits - etc/version-groups.conf utils.py

James Antill james at osuosl.org
Fri Jan 22 19:54:58 UTC 2010


 etc/version-groups.conf |    1 +
 utils.py                |    5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 8376ac0c3c3ec808b95242b1a1061eb5aa8b9fb1
Author: James Antill <james at and.org>
Date:   Fri Jan 22 09:50:44 2010 -0500

    Fix utils basecmd setup, when we don't have any commands, BZ 557680

diff --git a/utils.py b/utils.py
index dc5b122..dbbbe13 100644
--- a/utils.py
+++ b/utils.py
@@ -203,7 +203,10 @@ class YumUtilBase(YumBaseCli):
         # Now parse the command line for real and 
         # apply some of the options to self.conf
         (opts, self.cmds) = self._parser.setupYumConfig()
-        self.basecmd = self.cmds[0] # our base command
+        if self.cmds:
+            self.basecmd = self.cmds[0] # our base command
+        else:
+            self.basecmd = None
         self.extcmds = self.cmds[1:] # out extended arguments/commands
 
         return opts
commit 6fed7205f9e6619e6297008e512f42f4c0f7d57f
Author: James Antill <james at and.org>
Date:   Thu Jan 21 19:29:11 2010 -0500

     Add yum-metadata-parser to the yum version group.
    
     We had left it out because it was in run_with_packages, but it's
    only added to that when it's used (so it doesn't clutter history, when
    it's not used) but that means "yum version" doesn't see it.

diff --git a/etc/version-groups.conf b/etc/version-groups.conf
index 57d97dd..6e10998 100644
--- a/etc/version-groups.conf
+++ b/etc/version-groups.conf
@@ -6,6 +6,7 @@
 # even though that's require by rpm(-libs).
 run_with_packages = true
 pkglist = glibc, sqlite, libcurl, nss,
+          yum-metadata-parser,
           rpm, rpm-libs, rpm-python, 
           python,
           python-iniparse, python-urlgrabber, python-pycurl 


More information about the Yum-commits mailing list