mirror of
https://github.com/openSUSE/osc.git
synced 2025-10-05 00:59:18 +02:00
fix wipebinaries
don't do a second wipe all after doing the intended wipe by a filter. Eg: osc wipebinaries home:adrianSuSE -r standard -a i586 --build-disabled wiped first --build-disabled only, but did a second wipe all afterwards
This commit is contained in:
@@ -6800,8 +6800,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
codes.append('broken')
|
codes.append('broken')
|
||||||
if opts.unresolvable:
|
if opts.unresolvable:
|
||||||
codes.append('unresolvable')
|
codes.append('unresolvable')
|
||||||
if opts.all or opts.repo or opts.arch:
|
if len(codes) == 0:
|
||||||
codes.append(None)
|
# don't do a second wipe if a filter got specified
|
||||||
|
if opts.all or opts.repo or opts.arch:
|
||||||
|
codes.append(None)
|
||||||
|
|
||||||
if len(codes) == 0:
|
if len(codes) == 0:
|
||||||
raise oscerr.WrongOptions('No option has been provided. If you want to delete all binaries, use --all option.')
|
raise oscerr.WrongOptions('No option has been provided. If you want to delete all binaries, use --all option.')
|
||||||
|
Reference in New Issue
Block a user