1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-12 23:56:13 +01:00

sr: use link target package also when called with one argument

This commit is contained in:
Ludwig Nussel 2012-02-07 11:03:21 +01:00
parent 475867cc64
commit f53e40b2fd

View File

@ -1008,7 +1008,10 @@ class Osc(cmdln.Cmdln):
if len(args) == 2:
dst_package = args[1]
else:
dst_package = src_package
if p.islink():
dst_package = p.linkinfo.package
else:
dst_package = src_package
else:
sys.exit('Package \'%s\' is not a source link, so I cannot guess the submit target.\n'
'Please provide it the target via commandline arguments.' % p.name)