🗝
summary refs log tree commit diff
path: root/packages/aur.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aur.py')
-rw-r--r--packages/aur.py17
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}")