1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-02 17:56:15 +01:00

- make the enablechannels command also working for entire project

This commit is contained in:
Adrian Schröter 2015-07-15 15:22:26 +02:00
parent 76023d5643
commit 569efcace8

View File

@ -485,7 +485,8 @@ class Osc(cmdln.Cmdln):
if subcmd == 'enablechannels' or subcmd == 'enablechannel': if subcmd == 'enablechannels' or subcmd == 'enablechannel':
command = "enablechannel" command = "enablechannel"
if channel == None: if channel == None:
sys.exit("enablechannel needs a channel package") command = "modifychannels"
mode="enable_all"
else: else:
if opts.enable_all and opts.skip_disabled: if opts.enable_all and opts.skip_disabled:
sys.exit('--enable-all and --skip-disabled option are exclusive') sys.exit('--enable-all and --skip-disabled option are exclusive')