From b4b12b39b61f64f1eb2e852ef9780bd597aaea61 Mon Sep 17 00:00:00 2001 From: AI Bot Date: Fri, 17 Apr 2026 19:26:06 +0200 Subject: [PATCH] Openspec fixups --- .../changes/declpac-cli-tool/specs/input-merging/spec.md | 5 ++--- .../changes/declpac-cli-tool/specs/orphan-cleanup/spec.md | 2 +- openspec/changes/declpac-cli-tool/specs/pacman-sync/spec.md | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/openspec/changes/declpac-cli-tool/specs/input-merging/spec.md b/openspec/changes/declpac-cli-tool/specs/input-merging/spec.md index 18f258d..f12f2de 100644 --- a/openspec/changes/declpac-cli-tool/specs/input-merging/spec.md +++ b/openspec/changes/declpac-cli-tool/specs/input-merging/spec.md @@ -18,7 +18,6 @@ strategy without conflict resolution. - **WHEN** stdin contains packages not in state files - **THEN** those packages shall be added to the final state -#### Scenario: Duplicate packages accumulate +#### Scenario: Duplicate packages are deduplicated - **WHEN** the same package appears in multiple inputs -- **THEN** it shall be included multiple times in the final state (pacman - handles duplicates) +- **THEN** it shall be included once in the final state (map deduplication) diff --git a/openspec/changes/declpac-cli-tool/specs/orphan-cleanup/spec.md b/openspec/changes/declpac-cli-tool/specs/orphan-cleanup/spec.md index 9efaa1b..745d3e4 100644 --- a/openspec/changes/declpac-cli-tool/specs/orphan-cleanup/spec.md +++ b/openspec/changes/declpac-cli-tool/specs/orphan-cleanup/spec.md @@ -17,7 +17,7 @@ After syncing, the system SHALL remove packages that are no longer required #### Scenario: Orphan cleanup after sync - **WHEN** sync operation completes successfully -- **THEN** system shall run pacman -Rsu to remove unneeded dependencies +- **THEN** system shall run pacman -Rns to remove unneeded dependencies - **AND** report the number of packages removed #### Scenario: Orphan cleanup respects explicitly installed diff --git a/openspec/changes/declpac-cli-tool/specs/pacman-sync/spec.md b/openspec/changes/declpac-cli-tool/specs/pacman-sync/spec.md index e95f804..ed46261 100644 --- a/openspec/changes/declpac-cli-tool/specs/pacman-sync/spec.md +++ b/openspec/changes/declpac-cli-tool/specs/pacman-sync/spec.md @@ -10,7 +10,7 @@ The system SHALL execute pacman operations to install and upgrade all declared p #### Scenario: No partial upgrades - **WHEN** running pacman commands -- **THEN** system shall use -Syu flag (full system upgrade) ensuring all packages are latest +- **THEN** system shall use -S --needed flag (sync with skip if up-to-date) ensuring declared packages are present #### Scenario: Package availability check - **WHEN** a package from input is not in pacman repositories