From c642acacd67a73ba12420e3e5b9ddd5b9151f1d1 Mon Sep 17 00:00:00 2001 From: Fantix King Date: Fri, 22 Nov 2024 14:38:34 -0500 Subject: [PATCH] Allow rpm package with no source tarball --- metapkg/targets/rpm/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metapkg/targets/rpm/build.py b/metapkg/targets/rpm/build.py index aef1c92..991fcba 100644 --- a/metapkg/targets/rpm/build.py +++ b/metapkg/targets/rpm/build.py @@ -468,7 +468,7 @@ def _get_patch_script(self) -> str: def _get_package_unpack_script(self, pkg: mpkg.BasePackage) -> str: tarball_root = self.get_tarball_root(relative_to="pkgbuild") - tarballs = self._tarballs[pkg] + tarballs = self._tarballs.get(pkg, []) script = [] for src, tarball_path in tarballs: