Blame SOURCES/BZ-1151154-yum-config-manager-disable-all-repos.patch

5b4f08
commit b6e8afc8511262ca5405a084d806cdd5e52519c7
5b4f08
Author: Valentina Mukhamedzhanova <vmukhame@redhat.com>
5b4f08
Date:   Tue May 26 10:01:07 2015 +0200
5b4f08
5b4f08
    yum-config-manager: require \* syntax to disable all repos. BZ#1151154
5b4f08
5b4f08
diff --git a/yum-config-manager.py b/yum-config-manager.py
5b4f08
index 708c33f..0531c72 100755
5b4f08
--- a/yum-config-manager.py
5b4f08
+++ b/yum-config-manager.py
5b4f08
@@ -146,8 +146,11 @@ if opts.enable and opts.disable:
5b4f08
     logger.error("Error: Trying to enable and disable repos.")
5b4f08
     opts.enable = opts.disable = False
5b4f08
 if opts.enable and not args:
5b4f08
-    logger.error("Error: Trying to enable already enabled repos.")
5b4f08
+    logger.error("Error: please specify repos to enable (\* to enable all).")
5b4f08
     opts.enable = False
5b4f08
+if opts.disable and not args:
5b4f08
+    logger.error("Error: please specify repos to disable (\* to disable all).")
5b4f08
+    opts.disable = False
5b4f08
 
5b4f08
 only = None
5b4f08