Skip to content

Commit 06239d4

Browse files
committed
chore(meta-helpers): add find_aur_pkgs_with_notinstalled_builddeps
1 parent 88bccb2 commit 06239d4

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from pikaur.pacman import PackageDB
2+
from pikaur_meta_helpers.util import load_aur_dump
3+
4+
5+
def main() -> None:
6+
aur_pkgs = load_aur_dump()
7+
print("Filtering...\n")
8+
all_repo_pkgnames = PackageDB.get_repo_pkgnames()
9+
all_local_pkgs = PackageDB.get_local_dict()
10+
matching_packages: dict[str, list[str]] = {}
11+
for pkg in aur_pkgs:
12+
for make_dep_name in pkg.makedepends:
13+
if (make_dep_name in all_repo_pkgnames) and (make_dep_name not in all_local_pkgs):
14+
matching_packages.setdefault(pkg.name, []).append(make_dep_name)
15+
16+
print(matching_packages)
17+
18+
19+
if __name__ == "__main__":
20+
main()

0 commit comments

Comments
 (0)