1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00

tree: import changes from testing-devel at 0024c48d0b

This commit is contained in:
CoreOS Bot
2026-02-04 15:37:33 +00:00
parent 75cf9613b0
commit 484dc473b2

View File

@@ -74,7 +74,7 @@ def get_treefile(manifest_path, osid, stream, version):
with tempfile.NamedTemporaryFile(suffix='.json', mode='w') as tmp_manifest:
# Substitute in a few values from build-args into the treefile.
## Split the version to get components for releasever and osversion
(x, y, _) = version.split('.', 2)
(x, y, _) = version.split('.', 2) if '.' in version else (version, '0', '0')
osversion = f"{osid}-{x}"
if osid == "rhel":
# For RHCOS we add the minor to the osversion