mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-11 20:43:50 -06:00
chore: drop the scheduled campaign job
This commit is contained in:
1 parent
6876fe7ec3
commit
442d49e4e1
5 files changed
+13
-81
No files matched your search
+2
-11
@@ -53,11 +53,9 @@ Usage:
|
||||
python scripts/campaign.py findings [--all] [--json]
|
||||
python scripts/campaign.py review KEY --status applied|rejected --reason TEXT [--set FIELD=YAML]
|
||||
python scripts/campaign.py gate
|
||||
python scripts/campaign.py install-timer [--enable]
|
||||
|
||||
install-timer is opt-in: a contributor who wants a schedule on their own
|
||||
machine installs the timer. It writes the units and enables nothing unless
|
||||
--enable is passed.
|
||||
A maintainer starts each pass for a question that names its profiles: no
|
||||
job runs it on a schedule.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -1941,18 +1939,11 @@ def main(argv: Sequence[str] | None = None) -> int:
|
||||
help="with --status applied, a field to write into the entry")
|
||||
review_p.add_argument("--index", type=int, help="the entry's position when several share its name")
|
||||
sub.add_parser("gate", help="tests, schemas, verify and pack of the changed profiles")
|
||||
timer_p = sub.add_parser("install-timer",
|
||||
help="opt-in: write the autorun units, the campaign job's timer among them")
|
||||
timer_p.add_argument("--enable", action="store_true",
|
||||
help="also reload systemd and enable the timers (never by default)")
|
||||
args = parser.parse_args(argv)
|
||||
|
||||
paths = Paths.default()
|
||||
if args.command == "gate":
|
||||
return gate(paths.root, changed_profiles(paths.root))
|
||||
if args.command == "install-timer":
|
||||
command = [sys.executable, str(ROOT / "scripts" / "autorun.py"), "install-timers"]
|
||||
return subprocess.run(command + (["--enable"] if args.enable else []), check=False).returncode
|
||||
if args.command == "review":
|
||||
updates: dict[str, object] = {}
|
||||
for item in args.set:
|
||||
|
||||
Reference in new issue
Block a user