1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-03 18:16:17 +01:00

support OBS 2.0 "unresolvable" state, former expansion error state is still supported.

This commit is contained in:
Adrian Schröter 2010-04-23 14:38:00 +02:00
parent fc27b4816b
commit 4db40e23f5
4 changed files with 9 additions and 7 deletions

1
NEWS
View File

@ -1,6 +1,7 @@
0.127
- add size limit mode, files can be ignored on checkout or update given a certain size limit.
- --csv/--format options for results command - using format user can explicitly specify what he wants print
- support for "unresolvable" state of OBS 2.0
0.126
- added VM autosetup to osc. This requires appropriate OBS version and build script version.

2
dist/osc.complete vendored
View File

@ -353,7 +353,7 @@ pr|prjresults)
;;
-s|--status-filter*)
OIFS="$IFS"; IFS=:
builtin compgen -W 'disabled:failed:finished:building:succeeded:broken:scheduled:expansion error:blocked' -- "${cmdline[$count]}"
builtin compgen -W 'disabled:failed:finished:building:succeeded:broken:scheduled:unresolvable:signing:blocked' -- "${cmdline[$count]}"
IFS="$OIFS"
;;
-p|--project*)

View File

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

View File

@ -185,7 +185,8 @@ new_pattern_template = """\
buildstatus_symbols = {'succeeded': '.',
'disabled': ' ',
'expansion error': 'E',
'expansion error': 'E', # obsolete with OBS 2.0
'unresolvable': 'U',
'failed': 'F',
'broken': 'B',
'blocked': 'b',
@ -3569,7 +3570,7 @@ def get_package_results(apiurl, prj, package, lastbuild=None, repository=[], arc
rmap['code'] = statusnode.get('code', '')
rmap['details'] = ''
if rmap['code'] in ('expansion error', 'broken', 'blocked', 'finished'):
if rmap['code'] in ('unresolvable', 'expansion error', 'broken', 'blocked', 'finished'):
details = statusnode.find('details')
if details != None:
rmap['details'] = details.text