From 569efcace872658c52f6c47966fc91d02d058358 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= <adrian@suse.de>
Date: Wed, 15 Jul 2015 15:22:26 +0200
Subject: [PATCH] - make the enablechannels command also working for entire
 project

---
 osc/commandline.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/osc/commandline.py b/osc/commandline.py
index 5789bfe5..cbe78c08 100644
--- a/osc/commandline.py
+++ b/osc/commandline.py
@@ -485,7 +485,8 @@ class Osc(cmdln.Cmdln):
         if subcmd == 'enablechannels' or subcmd == 'enablechannel':
             command = "enablechannel"
             if channel == None:
-               sys.exit("enablechannel needs a channel package")
+                command = "modifychannels"
+                mode="enable_all"
         else:
             if opts.enable_all and opts.skip_disabled:
                 sys.exit('--enable-all and --skip-disabled option are exclusive')