overlay.toml: keep antigravity's icon pin, autobump 1password, stop liblol
Pass ICON_COMMIT to the engine as a static pin, because the icon is fetched at a fixed commit and would otherwise escalate every antigravity bump. Turn autobump on for 1password, because engine commit 29b4088 removed the acct-group limitation its comment named. Turn it off for liblol, because KEYWORDS="-* ~loong" means the amd64 build gate can never install it. Signed-off-by: Zakk <zakk@gentoozh.org>
This commit is contained in:
1 parent
77d2931a19
commit
86fafae4c9
2 files changed
+14
-3
No files matched your search
@@ -58,7 +58,7 @@ mirror = "https://downloads.1password.com/linux/debian/amd64"
|
||||
suite = "stable"
|
||||
# strip_release = true
|
||||
github_account = ["yangmame", "gouwazi"]
|
||||
# autobump off: install needs acct-group/onepassword, which the engine lacks
|
||||
autobump = true
|
||||
|
||||
["app-admin/chezmoi"]
|
||||
source = "github"
|
||||
@@ -184,6 +184,7 @@ regex = '"version":"([\d.]+)"'
|
||||
github_account = "zakkaus"
|
||||
autobump = true
|
||||
autobump_my_build_regex = '"version":"${PV}","execution_id":"([0-9]+)"'
|
||||
autobump_static_pins = ["ICON_COMMIT"]
|
||||
|
||||
["app-editors/antigravity-ide"]
|
||||
source = "regex"
|
||||
@@ -275,7 +276,7 @@ use_max_tag = true
|
||||
include_regex = "^v\\d+\\.\\d+\\.\\d+$"
|
||||
prefix = "v"
|
||||
github_account = "xen0n"
|
||||
autobump = true
|
||||
# autobump off: KEYWORDS="-* ~loong", so the amd64 build gate cannot install it
|
||||
|
||||
["app-emulation/liblol-glibc"]
|
||||
source = "github"
|
||||
|
||||
@@ -49,6 +49,14 @@ def rewrite_flags(pkg, table):
|
||||
"--rewrite-regex", table[f"autobump_{name}_regex"]]
|
||||
|
||||
|
||||
def static_pin_flags(pkg, table):
|
||||
"""`autobump_static_pins` lists source pins that stay the same across versions."""
|
||||
pins = table.get("autobump_static_pins", [])
|
||||
if not isinstance(pins, list) or not all(isinstance(p, str) for p in pins):
|
||||
die(f"{pkg}: autobump_static_pins must be a list of variable names")
|
||||
return [f for p in pins for f in ("--static-pin", p)]
|
||||
|
||||
|
||||
def describe(flags):
|
||||
"""The same settings in words, for the status comment autobump leaves on the issue."""
|
||||
said = []
|
||||
@@ -59,6 +67,8 @@ def describe(flags):
|
||||
said.append(f"keeps the {flag.removeprefix('--keep-old=')} newest versions")
|
||||
elif flag == "--rewrite-var":
|
||||
said.append("rewrites a pinned variable")
|
||||
elif flag == "--static-pin":
|
||||
said.append("keeps a pinned variable")
|
||||
return "".join(f" · {s}" for s in said)
|
||||
|
||||
|
||||
@@ -71,7 +81,7 @@ def main(argv):
|
||||
path = argv[1] if len(argv) > 1 else DEFAULT_TOML
|
||||
with open(path, "rb") as f:
|
||||
table = tomllib.load(f).get(pkg, {})
|
||||
flags = keep_old_flag(pkg, table.get("autobump")) + rewrite_flags(pkg, table)
|
||||
flags = keep_old_flag(pkg, table.get("autobump")) + rewrite_flags(pkg, table) + static_pin_flags(pkg, table)
|
||||
print(describe(flags) if as_words else "\n".join(flags))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user