diff options
| author | 2024-11-23 17:04:40 -0500 | |
|---|---|---|
| committer | 2024-11-23 17:04:40 -0500 | |
| commit | b1359b9f68513a1aada447c3f419d056fc206555 (patch) | |
| tree | fa5e001dff1f913c04e518b4a2dc67df9a4e6db4 /scripts | |
| parent | 6816c7d501b80cf886560e716a2435399ba04150 (diff) | |
| download | kiwi-descriptions-b1359b9f68513a1aada447c3f419d056fc206555.tar.gz kiwi-descriptions-b1359b9f68513a1aada447c3f419d056fc206555.zip | |
scripts/fedora-live-iso-label-generator: Account for unknown profiles
This way it does not fail and produces something that makes sense.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/fedora-live-iso-label-generator | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/fedora-live-iso-label-generator b/scripts/fedora-live-iso-label-generator index 6aaa799..c4b431e 100755 --- a/scripts/fedora-live-iso-label-generator +++ b/scripts/fedora-live-iso-label-generator @@ -89,8 +89,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}" |