-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(meta_helpers: find_split_aur_pkgs): move it as well to this …
…new module
- Loading branch information
1 parent
a6c7a73
commit fe4b6e5
Showing
2 changed files
with
19 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |