mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-11-11 07:30:28 +00:00
fix: explicitly process list of packages
Small workaround to remove debug packages from being processed
This commit is contained in:
1 parent
9edff2826f
commit
fd3c6343f1
2 files changed
+10
-8
No files matched your search
@@ -207,11 +207,12 @@ class PackageArchive:
|
||||
dependencies = set()
|
||||
roots: set[Path] = set()
|
||||
|
||||
package_dir = self.root / "build" / self.package.base / "pkg"
|
||||
for path in filter(lambda p: p.is_file(), walk(package_dir)):
|
||||
dependencies.update(PackageArchive.dynamic_needed(path))
|
||||
filesystem_path = Path(*path.relative_to(package_dir).parts[1:])
|
||||
roots.update(filesystem_path.parents[:-1]) # last element is always . because paths are relative
|
||||
for package in self.package.packages:
|
||||
package_dir = self.root / "build" / self.package.base / "pkg" / package
|
||||
for path in filter(lambda p: p.is_file(), walk(package_dir)):
|
||||
dependencies.update(PackageArchive.dynamic_needed(path))
|
||||
filesystem_path = Path(*path.relative_to(package_dir).parts)
|
||||
roots.update(filesystem_path.parents[:-1]) # last element is always . because paths are relative
|
||||
|
||||
return dependencies, roots
|
||||
|
||||
|
||||
Reference in new issue
Block a user