pungi-koji: fix up latest symlink creation
If release_version does not have a . in it the current logic gives us and empty result. in those cases, such as 23 or Rawhide use the value of release_version as is. Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
parent
8de7d685d9
commit
d13f655300
@ -369,6 +369,9 @@ def run_compose(compose):
|
||||
|
||||
# create a latest symlink
|
||||
compose_dir = os.path.basename(compose.topdir)
|
||||
if len(compose.conf["release_version"].split(".")) == 1:
|
||||
symlink_name = "latest-%s-%s" % (compose.conf["release_short"], compose.conf["release_version"])
|
||||
else:
|
||||
symlink_name = "latest-%s-%s" % (compose.conf["release_short"], ".".join(compose.conf["release_version"].split(".")[:-1]))
|
||||
if compose.conf["release_is_layered"]:
|
||||
symlink_name += "-%s-%s" % (compose.conf["base_product_short"], compose.conf["base_product_version"])
|
||||
|
Loading…
Reference in New Issue
Block a user