diff options
author | mia <mia@mia.jetzt> | 2024-07-05 16:36:29 -0700 |
---|---|---|
committer | mia <mia@mia.jetzt> | 2024-07-05 16:36:29 -0700 |
commit | 55b4278719b1af00a858acd3065b91f527eb8fd9 (patch) | |
tree | 14edcd23bf5fc25b6d3adcc4f16599460f668736 /packages/aur.py | |
parent | 56979efd3c0601e2b1c72ef5fb66512c81c1ccf7 (diff) | |
download | asylum-55b4278719b1af00a858acd3065b91f527eb8fd9.tar.gz asylum-55b4278719b1af00a858acd3065b91f527eb8fd9.zip |
updates
Diffstat (limited to 'packages/aur.py')
-rw-r--r-- | packages/aur.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/packages/aur.py b/packages/aur.py index 4fdbcfc..b52ab29 100644 --- a/packages/aur.py +++ b/packages/aur.py @@ -1,18 +1,25 @@ import shlex import subprocess - -from local import build_push +import sys from commia.prelude import * from commia.util import check_continue, read_ini +from local import build_push packages = read_ini("packages/aur.ini")["default"] ini = Path("packages/aur.ini").read_text() git_ignore = Path("packages/.gitignore").read_text() +only = sys.argv[1:] +if len(only) == 0: + only = None + print("initializing new packages") for name, fix in packages.items(): + if only and name not in only: + print(f"skipping {name}") + continue if not Path(f"packages/{name}").exists(): print(f"cloning {name}") run_check( @@ -49,6 +56,9 @@ print("checking for new versions") queue = [] for name, current in packages.items(): + if only and name not in only: + print(f"skipping {name}") + continue if name.endswith("-git"): continue print(f"checking {name}") @@ -75,6 +85,9 @@ for name, current in packages.items(): for name, current in packages.items(): + if only and name not in only: + print(f"skipping {name}") + continue if not name.endswith("-git"): continue print(f"checking {name}") |