1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-15 18:16:13 +01:00

deletepac: allow arguments like "<project>/<package>" (which are separated by a "/")

This commit is contained in:
Marcus Hüwe 2008-10-01 15:01:32 +00:00
parent d6d5e441cf
commit 6a44bef9b5

View File

@ -847,7 +847,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
% (r, pkg)
def do_deletepac(self, subcmd, opts, project, *pkgs):
def do_deletepac(self, subcmd, opts, *args):
"""${cmd_name}: Delete packages on the repository server
usage:
@ -855,11 +855,13 @@ Please submit there instead, or use --nodevelproject to force direct submission.
${cmd_option_list}
"""
args = slash_split(args)
pkgs = args[1:]
if not pkgs:
raise oscerr.WrongArgs('Missing argument.')
for pkg in pkgs:
delete_package(conf.config['apiurl'], project, pkg)
delete_package(conf.config['apiurl'], args[0], pkg)
@cmdln.option('-f', '--force', action='store_true',