diff --git a/bin/pungi-koji b/bin/pungi-koji index e48257e0..09726aed 100755 --- a/bin/pungi-koji +++ b/bin/pungi-koji @@ -369,7 +369,10 @@ def run_compose(compose): # create a latest symlink compose_dir = os.path.basename(compose.topdir) - symlink_name = "latest-%s-%s" % (compose.conf["release_short"], ".".join(compose.conf["release_version"].split(".")[:-1])) + 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"]) symlink = os.path.join(compose.topdir, "..", symlink_name)