mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-22 18:22:12 +01:00
- fixed set_link_rev: if expand is True always get the (expanded) revision from the server
This commit is contained in:
parent
38f665eef8
commit
94c006ba5f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user