Skip to content

Commit

Permalink
sr: use link target package also when called with one argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lnussel committed Feb 7, 2012
1 parent 475867c commit f53e40b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osc/commandline.py
Expand Up @@ -1008,7 +1008,10 @@ def do_submitrequest(self, subcmd, opts, *args):
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)
Expand Down

0 comments on commit f53e40b

Please sign in to comment.