mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 17:16:12 +01:00
fixed se -V to not explode when a project match was found.
This commit is contained in:
parent
1685ff801b
commit
36007fb538
@ -5287,7 +5287,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if not package is None:
|
if not package is None:
|
||||||
result.append(package)
|
result.append(package)
|
||||||
|
|
||||||
if opts.version:
|
if opts.version and package != None:
|
||||||
sr = get_source_rev(apiurl,project,package)
|
sr = get_source_rev(apiurl,project,package)
|
||||||
v = sr.get('version')
|
v = sr.get('version')
|
||||||
r = sr.get('rev')
|
r = sr.get('rev')
|
||||||
@ -5328,7 +5328,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
headline = [ '# Project', '# Package' ]
|
headline = [ '# Project', '# Package' ]
|
||||||
else:
|
else:
|
||||||
headline = [ '# Project' ]
|
headline = [ '# Project' ]
|
||||||
if opts.version:
|
if opts.version and kind == 'package':
|
||||||
headline.append('# Ver')
|
headline.append('# Ver')
|
||||||
headline.append('Rev')
|
headline.append('Rev')
|
||||||
headline.append('Srcmd5')
|
headline.append('Srcmd5')
|
||||||
|
Loading…
Reference in New Issue
Block a user