| |
@@ -24,6 +24,7 @@
|
| |
# The image is technically wsl2, but the type_name in Koji is set to
|
| |
# wsl.
|
| |
"wsl": ["wsl"],
|
| |
+ "tar": ["tar", "tar.gz", "tar.bz2", "tar.xz", "tgz"],
|
| |
}
|
| |
)
|
| |
|
| |
@@ -280,6 +281,9 @@
|
| |
# type explicitly. There really is no other possible type
|
| |
# here anyway.
|
| |
img.type = "wsl2"
|
| |
+ elif archive["type_name"] == "tar" and "wsl2" in archive["filename"]:
|
| |
+ # HACK: this should really be set in the compose configuration
|
| |
+ img.type = "wsl2"
|
| |
elif archive["type_name"] != "iso":
|
| |
img.type = archive["type_name"]
|
| |
else:
|
| |
OSBuild can generate images with
tar.gzextension but import them to Koji with archive type set totar. In such situation Pungi will not recognize the file and it will not be downloaded into the compose.