1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-08-23 14:48:53 +02: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

@@ -1007,6 +1007,9 @@ class Osc(cmdln.Cmdln):
dst_project = args[0]
if len(args) == 2:
dst_package = args[1]
else:
if p.islink():
dst_package = p.linkinfo.package
else:
dst_package = src_package
else: