new-release: Handle em for untagged repos
This updates the new-release command to use the last release for normal repos when transitioning to -em, but grabbing the current HEAD when tagging "release-model: untagged" deliverables. Change-Id: I42acb74d033429a72946fda136f87b4ccaefb220 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
e09fb284b8
commit
313e348713
@ -430,9 +430,10 @@ def main():
|
|||||||
repo_info = deliverable_info['repository-settings'][repo]
|
repo_info = deliverable_info['repository-settings'][repo]
|
||||||
tarball_base = repo_info.get('tarball-base')
|
tarball_base = repo_info.get('tarball-base')
|
||||||
|
|
||||||
if is_retagging or is_em:
|
if is_retagging or (
|
||||||
|
is_em and deliverable_info['release-model'] != 'untagged'):
|
||||||
# Always use the last tagged hash, which should be coming
|
# Always use the last tagged hash, which should be coming
|
||||||
# from the previous series.
|
# from the previous series or last release.
|
||||||
sha = last_version_hashes[repo]
|
sha = last_version_hashes[repo]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user