mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 23:46:13 +01:00
don't wipe all binaries by default, --all is needed now
This commit is contained in:
parent
51228e2e22
commit
53eb08ffa3
@ -2388,6 +2388,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
help='Delete all binaries of packages for which the package source is bad')
|
help='Delete all binaries of packages for which the package source is bad')
|
||||||
@cmdln.option('--expansion', action='store_true',
|
@cmdln.option('--expansion', action='store_true',
|
||||||
help='Delete all binaries of packages which have expansion errors')
|
help='Delete all binaries of packages which have expansion errors')
|
||||||
|
@cmdln.option('--all', action='store_true',
|
||||||
|
help='Delete all binaries regardless of the package status (previously default)')
|
||||||
def do_wipebinaries(self, subcmd, opts, *args):
|
def do_wipebinaries(self, subcmd, opts, *args):
|
||||||
"""${cmd_name}: Delete all binary packages of a certain project/package
|
"""${cmd_name}: Delete all binary packages of a certain project/package
|
||||||
|
|
||||||
@ -2395,7 +2397,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
otherwise all binary packages in the project will be deleted.
|
otherwise all binary packages in the project will be deleted.
|
||||||
|
|
||||||
usage:
|
usage:
|
||||||
osc wipebinaries [OPTS] PROJECT [PACKAGE]
|
osc wipebinaries OPTS PROJECT [PACKAGE]
|
||||||
${cmd_option_list}
|
${cmd_option_list}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@ -2420,9 +2422,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
codes.append('broken')
|
codes.append('broken')
|
||||||
if opts.expansion:
|
if opts.expansion:
|
||||||
codes.append('expansion error')
|
codes.append('expansion error')
|
||||||
|
if opts.all:
|
||||||
|
codes.append(None)
|
||||||
|
|
||||||
if len(codes) == 0:
|
if len(codes) == 0:
|
||||||
codes.append(None)
|
print 'No option has been provided. If you want to delete all binaries, use --all option.'
|
||||||
|
return 1
|
||||||
|
|
||||||
# make a new request for each code= parameter
|
# make a new request for each code= parameter
|
||||||
for code in codes:
|
for code in codes:
|
||||||
|
Loading…
Reference in New Issue
Block a user