diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-20 12:12:40 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-20 12:12:40 +0200 |
| commit | c8306d6c87a40bb800241cccd90831e3893550b5 (patch) | |
| tree | 1c3b921fb6d416e633e7d42fe777921ff6f65b9a /remote/sbb-remote | |
| parent | 6bff3d035d9c1bccacb3fff39d8ef92e9f839748 (diff) | |
| download | sb-builder-c8306d6c87a40bb800241cccd90831e3893550b5.tar.gz sb-builder-c8306d6c87a40bb800241cccd90831e3893550b5.zip | |
sbb-remote 0.6.0: hint-new takes several packages, no version
Each gets the .info pin; Update selected sets a version later. One
package that already has a hint refuses the whole job before it starts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'remote/sbb-remote')
| -rwxr-xr-x | remote/sbb-remote | 8 |
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") |
