diff --git a/.github/workflows/setup.sh b/.github/workflows/setup.sh index 5ed07143..29d2879a 100755 --- a/.github/workflows/setup.sh +++ b/.github/workflows/setup.sh @@ -32,7 +32,7 @@ mv dist/ahriman-*.tar.gz package/archlinux chmod +777 package/archlinux # because fuck you that's why cd package/archlinux sudo -u nobody -- makepkg -cf --skipchecksums --noconfirm -sudo -u nobody -- makepkg --packagelist | pacman -U --noconfirm - +sudo -u nobody -- makepkg --packagelist | grep -v -- -debug- | pacman -U --noconfirm - # create machine-id which is required by build tools systemd-machine-id-setup diff --git a/src/ahriman/core/build_tools/task.py b/src/ahriman/core/build_tools/task.py index a9e1e962..a57c185b 100644 --- a/src/ahriman/core/build_tools/task.py +++ b/src/ahriman/core/build_tools/task.py @@ -107,7 +107,10 @@ class Task(LazyLogging): logger=self.logger, environment=environment, ).splitlines() - return [Path(package) for package in packages] + # some dirty magic here + # the filter is applied in order to make sure that result will only contain packages which were actually built + # e.g. in some cases packagelist command produces debug packages which were not actually built + return list(filter(lambda path: path.is_file(), map(Path, packages))) def init(self, sources_dir: Path, database: SQLite, local_version: str | None) -> str | None: """