1
0
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:
Marcus Huewe 2011-03-23 15:33:52 +01:00
parent 38f665eef8
commit 94c006ba5f

View File

@ -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)