From 36007fb5387dfbc2c00437662085ca76d938b059 Mon Sep 17 00:00:00 2001 From: Juergen Weigert Date: Fri, 11 Feb 2011 15:11:50 +0100 Subject: [PATCH] fixed se -V to not explode when a project match was found. --- osc/commandline.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index 442074ae..35e3b060 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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')