mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-23 10:42:14 +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 revision is None:
|
||||||
if 'rev' in root.keys():
|
if 'rev' in root.keys():
|
||||||
del root.attrib['rev']
|
del root.attrib['rev']
|
||||||
elif revision == '':
|
elif revision == '' or expand:
|
||||||
revision = show_upstream_rev(apiurl, src_project, src_package, linkrev=linkrev, expand=expand)
|
revision = show_upstream_rev(apiurl, src_project, src_package, revision=revision, linkrev=linkrev, expand=expand)
|
||||||
|
|
||||||
if revision:
|
if revision:
|
||||||
root.set('rev', revision)
|
root.set('rev', revision)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user