mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 03:32:15 +01: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:
parent
7d54b5c685
commit
efbd032da9
@ -6800,8 +6800,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
codes.append('broken')
|
||||
if opts.unresolvable:
|
||||
codes.append('unresolvable')
|
||||
if opts.all or opts.repo or opts.arch:
|
||||
codes.append(None)
|
||||
if len(codes) == 0:
|
||||
# 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:
|
||||
raise oscerr.WrongOptions('No option has been provided. If you want to delete all binaries, use --all option.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user