From 82aeceacac1d1c540e17b56aefc552148e4c4b62 Mon Sep 17 00:00:00 2001 From: AI Bot Date: Sat, 18 Apr 2026 14:27:47 +0200 Subject: [PATCH] Fixup: correct log path in add-operation-logging, fix pacman -Rns flag in declpac-cli-tool, update pkg path in fix-sync-dbs-notloaded --- .../archive/2026-04-17-add-operation-logging/proposal.md | 2 +- openspec/changes/archive/2026-04-17-declpac-cli-tool/tasks.md | 2 +- .../archive/2026-04-17-fix-sync-dbs-not-loaded/proposal.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openspec/changes/archive/2026-04-17-add-operation-logging/proposal.md b/openspec/changes/archive/2026-04-17-add-operation-logging/proposal.md index c1cd23b..bfa680f 100644 --- a/openspec/changes/archive/2026-04-17-add-operation-logging/proposal.md +++ b/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 diff --git a/openspec/changes/archive/2026-04-17-declpac-cli-tool/tasks.md b/openspec/changes/archive/2026-04-17-declpac-cli-tool/tasks.md index 3523b72..ef9d92b 100644 --- a/openspec/changes/archive/2026-04-17-declpac-cli-tool/tasks.md +++ b/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) diff --git a/openspec/changes/archive/2026-04-17-fix-sync-dbs-not-loaded/proposal.md b/openspec/changes/archive/2026-04-17-fix-sync-dbs-not-loaded/proposal.md index ef29df5..d3076dc 100644 --- a/openspec/changes/archive/2026-04-17-fix-sync-dbs-not-loaded/proposal.md +++ b/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 \ No newline at end of file +- `pkg/fetch/fetch.go`: Modify `New()` function to register sync DBs after getting them from the handle \ No newline at end of file