---
yumcommands.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/yumcommands.py b/yumcommands.py
index 700e76c..c6cc4d9 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
+ if not base.repos._setup:
+ base.repos.doSetup() # runs prereposetup
+ 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>')
--
1.7.11.7
_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel