mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-23 22:58:53 +02:00
sr: use link target package also when called with one argument
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user