diff options
| author | aur-build <aur-build@localhost> | 2026-11-19 14:15:16 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-19 14:15:16 +0000 |
| commit | 153e72cc797c1e45a60f4896d00163fb4bdf3056 (patch) | |
| tree | 7e2308552e5f5a33f4ddad07eba7a816e28e8568 /templates/error.html | |
| parent | 43a2bfaaac60bc378135ad90c46c9d42777aeb1e (diff) | |
| download | aur-build-153e72cc797c1e45a60f4896d00163fb4bdf3056.tar.gz aur-build-153e72cc797c1e45a60f4896d00163fb4bdf3056.zip | |
publish: repo-add decides the database filename
Publishing renders the index before the DB commits and renames it into place
after, so a crash between the two leaves the old index serving (I4). The way
that was written did it at `<db>.tar.gz.tmp` beside the live file — a filename
real repo-add refuses, because its database argument has to be a name pacman
would accept. Every publish test passed; the first real package anyone tried to
publish died at the last step with the release already committed.
`render_db` now renders into a scratch directory under the served directory,
under the name a consumer will download. Same filesystem, so the rename is still
the atomic swap, and the live database is never the file repo-add is writing
into. `publish`, `reconcile` and `withdraw_package` all had the bug and all share
the helper now; `reconcile` sweeps scratch directories a crash left behind.
`run_repo_add` drops `-s` too: repo-add would sign into scratch space that is
about to be deleted, and `publish::sign` already signs the renamed file.
The reason 238 tests missed this is that the shim would write the database
anywhere it was told. It now enforces the accepted set — measured against
`repo-add (pacman) 7.1.0`, not read out of its docs — with the real tool's
wording and exit status, and a gated test re-derives the set against the
installed tool, in the shape of the vercmp oracle. A shim that is more
permissive than its tool is not a test of the tool.
Diffstat (limited to 'templates/error.html')
0 files changed, 0 insertions, 0 deletions
