From f6869c9cea5e9112f8a6458e228c8ac3886ab370 Mon Sep 17 00:00:00 2001 From: nevaforget Date: Thu, 9 Apr 2026 11:47:51 +0200 Subject: [PATCH] fix: detect implicitly installed packages in moonarch-update Use pacman -Qq (all installed) instead of -Qqe (explicit only) so packages installed as dependencies are not falsely reported as missing. --- scripts/moonarch-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/moonarch-update b/scripts/moonarch-update index 63710db..0483116 100755 --- a/scripts/moonarch-update +++ b/scripts/moonarch-update @@ -56,7 +56,7 @@ fi log "=== Reconcile package lists ===" if [[ -f "$OFFICIAL_PACKAGES" ]]; then - MISSING_OFFICIAL=$(comm -23 <(read_packages "$OFFICIAL_PACKAGES" | sort) <(pacman -Qqe | sort) || true) + MISSING_OFFICIAL=$(comm -23 <(read_packages "$OFFICIAL_PACKAGES" | sort) <(pacman -Qq | sort) || true) if [[ -n "$MISSING_OFFICIAL" ]]; then log "Missing official packages:" echo "$MISSING_OFFICIAL" @@ -70,7 +70,7 @@ if [[ -f "$OFFICIAL_PACKAGES" ]]; then fi if [[ -f "$AUR_PACKAGES" ]] && command -v paru &>/dev/null; then - MISSING_AUR=$(comm -23 <(read_packages "$AUR_PACKAGES" | sort) <(pacman -Qqe | sort) || true) + MISSING_AUR=$(comm -23 <(read_packages "$AUR_PACKAGES" | sort) <(pacman -Qq | sort) || true) if [[ -n "$MISSING_AUR" ]]; then log "Missing AUR packages:" echo "$MISSING_AUR"