Browse Source

Fixup: correct log path in add-operation-logging, fix pacman -Rns flag in declpac-cli-tool, update pkg path in fix-sync-dbs-notloaded

master
AI Bot 6 hours ago committed by Riyyi
parent
commit
82aeceacac
  1. 2
      openspec/changes/archive/2026-04-17-add-operation-logging/proposal.md
  2. 2
      openspec/changes/archive/2026-04-17-declpac-cli-tool/tasks.md
  3. 2
      openspec/changes/archive/2026-04-17-fix-sync-dbs-not-loaded/proposal.md

2
openspec/changes/archive/2026-04-17-add-operation-logging/proposal.md

@ -7,7 +7,7 @@ debugging and audit.
## What Changes
- Add state directory initialization creating `~/.local/state/declpac` if not exists
- Open/manage a single log file at `$XDG_STATE_HOME/declpac` (e.g., `~/.local/state/declpac/declpac`)
- Open/manage a single log file at `/var/log/declpac.log`
- Instrument all state-modifying exec calls in `pkg/pacman/pacman.go` to tee or append output to this file
- Skip debug messages (internal timing logs)
- Capture and write errors before returning

2
openspec/changes/archive/2026-04-17-declpac-cli-tool/tasks.md

@ -47,7 +47,7 @@
- [x] 6.1 Get list of currently installed packages before sync
- [x] 6.2 Mark declared state packages as explicitly installed via pacman -D --explicit
- [x] 6.3 Run pacman sync operation (5.x series)
- [x] 6.4 Run pacman -Rsu to remove orphaned packages
- [x] 6.4 Run pacman -Rns to remove orphaned packages
- [x] 6.5 Capture and report number of packages removed
- [x] 6.6 Handle case where no orphans exist (no packages removed)

2
openspec/changes/archive/2026-04-17-fix-sync-dbs-not-loaded/proposal.md

@ -18,4 +18,4 @@ The program fails to find packages that exist in official repositories (like `cm
## Impact
- `pkg/pacman/pacman.go`: Modify `New()` function to register sync DBs after getting them from the handle
- `pkg/fetch/fetch.go`: Modify `New()` function to register sync DBs after getting them from the handle
Loading…
Cancel
Save