1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-28 23:46:13 +01:00

- wipebinaries: added --expansion option

This commit is contained in:
Marcus Hüwe 2009-01-10 22:55:25 +00:00
parent 355b6935db
commit cc99647933

View File

@ -2113,6 +2113,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='Delete all binaries of packages for which the build failed') help='Delete all binaries of packages for which the build failed')
@cmdln.option('--broken', action='store_true', @cmdln.option('--broken', action='store_true',
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',
help='Delete all binaries of packages which have expansion errors')
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
@ -2143,6 +2145,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
codes.append('failed') codes.append('failed')
if opts.broken: if opts.broken:
codes.append('broken') codes.append('broken')
if opts.expansion:
codes.append('expansion error')
if len(codes) == 0: if len(codes) == 0:
codes.append(None) codes.append(None)