Expand description
Pre-transaction guardrails: pacman db-lock detection, disk-space checks, and sync-database freshness checks with actionable guidance.
These checks run before install/remove/update transactions (CLI and TUI) and are read-only: they never mutate the system and are therefore safe in dry-run mode.
Structs§
- Guardrail
Context - Filesystem locations and thresholds consulted by the guardrail checks.
Enums§
- Guardrail
Issue - A single guardrail finding carrying the data needed to render an actionable message.
- Guardrail
Operation - The kind of transaction a guardrail check runs for.
Functions§
- check_
db_ lock - What: Check whether the pacman database is locked.
- check_
disk_ space - What: Check whether the pacman cache filesystem has enough free space.
- check_
sync_ db_ freshness - What: Check whether the pacman sync databases are stale.
- run_
guardrails - What: Run all guardrail checks for a transaction.