[yum-commits] Branch 'yum-3_2_X' - yumcommands.py

James Antill james at osuosl.org
Thu May 21 21:33:24 UTC 2009


 yumcommands.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1d592f91b48274625a2c8c1392aef3a443085a10
Author: James Antill <james at and.org>
Date:   Thu May 21 17:33:18 2009 -0400

    Don't output all of repoid, if only one revision of repoid

diff --git a/yumcommands.py b/yumcommands.py
index aa17876..0d725e1 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -1061,7 +1061,7 @@ class VersionCommand(YumCommand):
         def _append_repos(cols, repo_data):
             for repoid in sorted(repo_data):
                 cur = repo_data[repoid]
-                if None in data[1][repoid]:
+                if None in cur and len(cur) != 2:
                     cols.append(("    %s" % repoid, str(cur[None])))
                 for rev in sorted(cur):
                     if rev is None:


More information about the Yum-commits mailing list