1
0
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:
Juergen Weigert 2011-02-11 15:11:50 +01:00
parent 1685ff801b
commit 36007fb538

View File

@ -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')