From 6a44bef9b5b2bba973521b5c30cb30070c21831a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Wed, 1 Oct 2008 15:01:32 +0000 Subject: [PATCH] deletepac: allow arguments like "/" (which are separated by a "/") --- osc/commandline.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 1a84dc3e..604edffa 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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',