Skip to content

Commit

Permalink
test/generate-ostree-build-config: split version on dot
Browse files Browse the repository at this point in the history
We use dot-separated version numbers for RHEL now so let's split on dot
to get the major.
  • Loading branch information
achilleas-k committed May 31, 2024
1 parent 9e5ee29 commit 5e8b0ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/scripts/generate-ostree-build-config
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def gen_image_manifests(config_map, configs, distro, arch, outputdir):
def default_ref(distro, arch):
name, version = distro.split("-")
if name == "rhel":
version = version[0] # this will break on RHEL 10
# we use dots in our RHEL versions now
version, *_ = version.split(".")
product = "edge"
elif name == "fedora":
product = "iot"
Expand Down

0 comments on commit 5e8b0ce

Please sign in to comment.