From 22983d23554071013fb9caaa3a018ff2b649718b Mon Sep 17 00:00:00 2001 From: aur-build Date: Tue, 17 Nov 2026 22:09:13 +0000 Subject: =?UTF-8?q?cli:=20operator=20command=20line=20with=20the=20approva?= =?UTF-8?q?l=20path=20(=C2=A77.2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aur-build init/subscribe/detect/reviews/show/approve/reject/build/run/ builds/status/packages/audit. approve renders the review and then approves with the hashes it just rendered, so the CLI cannot approve a diff it did not show you; --identity/--diff reproduce the stale case explicitly and a refusal exits 2 (the web equivalent is 409). Approvals are now immutable at the schema level: migration 0006 rejects UPDATE and DELETE on the approval table, because that row is the only proof the system has of what a human actually looked at (ยง7.2, I10). Publishing also refuses when no approval is reachable, including the manual-rebuild path that inherits one. 10 tests, including two that drive the compiled binary end to end against a file:// AUR fixture. --- tests/db.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/db.rs') diff --git a/tests/db.rs b/tests/db.rs index b455603..f64262a 100644 --- a/tests/db.rs +++ b/tests/db.rs @@ -39,7 +39,7 @@ fn migrations_apply_from_empty_and_are_idempotent() { Ok(c.pragma_query_value(None, "user_version", |r| r.get::<_, u32>(0))?) }) .unwrap(); - assert_eq!(v, 5, "all migrations applied"); + assert_eq!(v, 6, "all migrations applied"); // Re-running migration over an existing DB is a no-op, not an error. assert_eq!(db::migrate(&env.cfg.db_path()).unwrap(), 0); let journal: String = env -- cgit v1.2.3