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

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