Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/fedora-kiwi-bundle-format-generator | 10 | ||||
| -rwxr-xr-x | scripts/fedora-live-iso-label-generator | 12 |
2 files changed, 12 insertions, 10 deletions
diff --git a/scripts/fedora-kiwi-bundle-format-generator b/scripts/fedora-kiwi-bundle-format-generator index 571a17b..7c48324 100755 --- a/scripts/fedora-kiwi-bundle-format-generator +++ b/scripts/fedora-kiwi-bundle-format-generator @@ -11,10 +11,9 @@ from pathlib import Path import xml.etree.ElementTree as ET -parser = ArgumentParser(description="Generator of ISO labels for Fedora live media builds") +parser = ArgumentParser(description="Generator of kiwi bundle formats for Fedora image builds") parser.add_argument("kiwi_file", type=Path, default="Fedora.kiwi", help="kiwi description file") parser.add_argument("image_profile", type=str, help="kiwi image profile") -parser.add_argument("--oci-variant", "-o", action="store_true", help="generate oci variant") args = parser.parse_args() xml_tree = ET.parse(args.kiwi_file) @@ -23,9 +22,4 @@ image_root = xml_tree.getroot() image_basename = image_root.attrib["name"] image_profile = args.image_profile -image_bundle_format = f"{image_basename}-{image_profile}-%v.%I.%A" - -if args.oci_variant: - print(f"{image_bundle_format}.%T") -else: - print(image_bundle_format) +print(f"{image_basename}-{image_profile}-%v.%I.%A") diff --git a/scripts/fedora-live-iso-label-generator b/scripts/fedora-live-iso-label-generator index 6aaa799..fc5cef6 100755 --- a/scripts/fedora-live-iso-label-generator +++ b/scripts/fedora-live-iso-label-generator @@ -32,6 +32,9 @@ volume_id_substitutions = { "Cinnamon": "Cinn", "Cloud": "C", "Comp_Neuro": "CNr", + "COSMIC": "CSMC", + "COSMIC-Atomic": "CSMCA", + "COSMIC_Atomic": "CSMCA", "Design_suite": "Dsgn", "Electronic_Lab": "Elec", "Everything": "E", @@ -46,11 +49,11 @@ volume_id_substitutions = { # Note https://pagure.io/pungi-fedora/issue/533 "Python-Classroom": "Clss", "Python_Classroom": "Clss", - "Robotics": "Robo", "Scientific_KDE": "SciK", "Security": "Sec", "Sericea": "Src", "Server": "S", + "Workstation": "WS", "-Workstation-": "-WS-", } @@ -89,8 +92,13 @@ image_profile_variant_appid_prefix = image_profile_baseprefix if image_profile_baseprefix in profile_to_application_id.keys(): image_profile_variant_appid_prefix = profile_to_application_id[image_profile_baseprefix] +else: + image_profile_variant_appid_prefix = image_profile_baseprefix -image_profile_variant_volid_prefix = volume_id_substitutions[image_profile_variant_appid_prefix] +if image_profile_variant_appid_prefix in volume_id_substitutions.keys(): + image_profile_variant_volid_prefix = volume_id_substitutions[image_profile_variant_appid_prefix] +else: + image_profile_variant_volid_prefix = image_profile_variant_appid_prefix image_appid = f"{image_basename}-{image_profile_variant_appid_prefix}-Live-{image_version}" image_volid = f"{image_basename}-{image_profile_variant_volid_prefix}-Live-{image_volid_version}" |