mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-17 18:32:17 +00:00
fix: return only built packages from task
Since the last updates makepkg --packagelist also adds debug packages which causes errors
This commit is contained in:
1 parent
4fec42eac8
commit
01597c531b
2 files changed
+5
-2
No files matched your search
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in new issue
Block a user