]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Match compressed pacman packages too
authorMartin Hundebøll <martin@geanix.com>
Mon, 20 Oct 2025 07:24:23 +0000 (09:24 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 20 Oct 2025 07:33:26 +0000 (09:33 +0200)
Arch packages can be compressed using various codecs, in which case the
package filename is suffixed with the compression method (e.g. .zst for
zstandard compression). Make sure to find such compressed packages in
the volatile package directory exposed to the build script as
$PACKAGEDIR, so they are installable using VolatilePackages=.

Fixes: 71ffced0 ("Rework PACKAGE_GLOBS to be a PackageManager classmethod")
mkosi/installer/pacman.py

index 4189c1f6a3c681e155f7a39428eeb71fa1154319..c416dfda33b6e8b9561a384b614e5a5a275babbd 100644 (file)
@@ -40,7 +40,7 @@ class Pacman(PackageManager):
 
     @classmethod
     def package_globs(cls) -> list[str]:
-        return ["*.pkg.tar"]
+        return ["*.pkg.tar*"]
 
     @classmethod
     def state_subdirs(cls, state: Path) -> list[Path]: