mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-08 14:08:42 +02:00
- fixed set_link_rev: if expand is True always get the (expanded) revision from the server
This commit is contained in:
@@ -5477,8 +5477,8 @@ def set_link_rev(apiurl, project, package, revision='', expand=False, baserev=Fa
|
||||
if revision is None:
|
||||
if 'rev' in root.keys():
|
||||
del root.attrib['rev']
|
||||
elif revision == '':
|
||||
revision = show_upstream_rev(apiurl, src_project, src_package, linkrev=linkrev, expand=expand)
|
||||
elif revision == '' or expand:
|
||||
revision = show_upstream_rev(apiurl, src_project, src_package, revision=revision, linkrev=linkrev, expand=expand)
|
||||
|
||||
if revision:
|
||||
root.set('rev', revision)
|
||||
|
Reference in New Issue
Block a user