Skip to content

Commit

Permalink
refactor(meta_helpers: find_split_aur_pkgs): move it as well to this …
Browse files Browse the repository at this point in the history
…new module
  • Loading branch information
actionless committed Jul 11, 2024
1 parent a6c7a73 commit fe4b6e5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 28 deletions.
28 changes: 0 additions & 28 deletions maintenance_scripts/find_split_aur_pkgs.py

This file was deleted.

19 changes: 19 additions & 0 deletions pikaur_meta_helpers/find_split_aur_pkgs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from pikaur_meta_helpers.util import load_aur_dump


def main() -> None:
aur_pkgs = load_aur_dump()

print("Filtering...\n")
pkgbases: dict[str, list[str]] = {}
for pkg in aur_pkgs:
pkgbases.setdefault(pkg.packagebase, []).append(pkg.name)

# Print all split-packages:
for pkgbase, pkgnames in pkgbases.items():
if len(pkgnames) > 1:
print(f"{pkgbase}: {pkgnames}")


if __name__ == "__main__":
main()

0 comments on commit fe4b6e5

Please sign in to comment.