[yum-commits] Branch 'yum-3_2_X' - yumcommands.py
James Antill
james at osuosl.org
Fri Jan 21 17:57:53 UTC 2011
yumcommands.py | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit ce8c667aa3706bfaa2f693b084e3d678fbf41dae
Author: James Antill <james at and.org>
Date: Fri Jan 21 11:19:57 2011 -0500
Show the "first" baseurl in repolist -v (and the number of other urls).
diff --git a/yumcommands.py b/yumcommands.py
index ecce347..45cd209 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -972,6 +972,12 @@ class RepoListCommand(YumCommand):
elif repo.mirrorlist:
out += [base.fmtKeyValFill(_("Repo-mirrors : "),
repo.mirrorlist)]
+ if enabled and repo.urls:
+ url = repo.urls[0]
+ if len(repo.urls) > 1:
+ url += ' (%d more)' % (len(repo.urls) - 1)
+ out += [base.fmtKeyValFill(_("Repo-baseurl : "),
+ url)]
if not os.path.exists(repo.metadata_cookie):
last = _("Unknown")
More information about the Yum-commits
mailing list