aboutsummaryrefslogtreecommitdiffstats
path: root/remote/sbb-remote
diff options
context:
space:
mode:
Diffstat (limited to 'remote/sbb-remote')
-rwxr-xr-xremote/sbb-remote8
1 files changed, 4 insertions, 4 deletions
diff --git a/remote/sbb-remote b/remote/sbb-remote
index 2674ed6..5183b77 100755
--- a/remote/sbb-remote
+++ b/remote/sbb-remote
@@ -40,7 +40,7 @@ import time
import tomllib
import urllib.request
-VERSION = "0.5.0"
+VERSION = "0.6.0"
DEFAULTS = {
"state_dir": "/var/lib/sb-builder",
"repo_dir": "/var/lib/sbopkg/SBo-danix",
@@ -168,9 +168,9 @@ def hint_args(cfg, kind, args):
raise Error(f"{kind}: unknown option {o}")
rest = [a for a in args if a != "--no-dl"]
if kind == "hint-new":
- if not 1 <= len(rest) <= 2:
- raise Error("usage: hint-new <pkg> [<version>] [--no-dl]")
- pairs = [(rest[0], rest[1] if len(rest) == 2 else None)]
+ if not rest:
+ raise Error("usage: hint-new <pkg>... [--no-dl]")
+ pairs = [(pkg, None) for pkg in rest] # the .info pin; Update sets a version later
else:
if not rest:
raise Error("hint-update needs at least one pkg=version")