[yum-commits] yumcommands.py
zpavlas at osuosl.org
zpavlas at osuosl.org
Wed Jun 5 15:05:39 UTC 2013
yumcommands.py | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 565f7ec414181c4e856b645b672324cafdc680e0
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date: Wed Jun 5 15:47:22 2013 +0200
checkEnabledRepo: run prereposetup if necessary. BZ 826096
diff --git a/yumcommands.py b/yumcommands.py
index 700e76c..8e0d7d1 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -248,6 +248,11 @@ def checkEnabledRepo(base, possible_local_files=[]):
if lfile.endswith(".rpm") and os.path.exists(lfile):
return
+ # runs prereposetup (which "most" plugins currently use to add repos.)
+ base.pkgSack
+ if base.repos.listEnabled():
+ return
+
msg = _('There are no enabled repos.\n'
' Run "yum repolist all" to see the repos you have.\n'
' You can enable repos with yum-config-manager --enable <repo>')
More information about the Yum-commits
mailing list