mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-24 00:56:15 +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:
|
||||
result.append(package)
|
||||
|
||||
if opts.version:
|
||||
if opts.version and package != None:
|
||||
sr = get_source_rev(apiurl,project,package)
|
||||
v = sr.get('version')
|
||||
r = sr.get('rev')
|
||||
@ -5328,7 +5328,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
headline = [ '# Project', '# Package' ]
|
||||
else:
|
||||
headline = [ '# Project' ]
|
||||
if opts.version:
|
||||
if opts.version and kind == 'package':
|
||||
headline.append('# Ver')
|
||||
headline.append('Rev')
|
||||
headline.append('Srcmd5')
|
||||
|
Loading…
Reference in New Issue
Block a user