Fix tests: add core repo to allowed list, strip CR from pacman output

This commit is contained in:
2026-09-15 15:37:44 +10:00
committed by alvinlollo
parent 8ea8699957
commit 10d2c90c6f
+3 -3
View File
@@ -192,7 +192,7 @@ jobs:
echo " Allowed repos: cachyos, extra, multilib, chaotic-aur" echo " Allowed repos: cachyos, extra, multilib, chaotic-aur"
echo "═══════════════════════════════════════════════════════════════" echo "═══════════════════════════════════════════════════════════════"
ALLOWED_REPOS="^(cachyos|extra|multilib|chaotic-aur)$" ALLOWED_REPOS="^(core|extra|multilib|cachyos|chaotic-aur)$"
MISSING=() MISSING=()
FOUND=0 FOUND=0
TOTAL=0 TOTAL=0
@@ -202,8 +202,8 @@ jobs:
[[ -z "$pkg" || "$pkg" =~ ^# ]] && continue [[ -z "$pkg" || "$pkg" =~ ^# ]] && continue
TOTAL=$((TOTAL + 1)) TOTAL=$((TOTAL + 1))
# Query pacman for the package's repository # Query pacman for the package's repository (strip \r just in case)
repo=$(pacman -Si "$pkg" 2>/dev/null | grep "^Repository" | awk '{print $3}') repo=$(pacman -Si "$pkg" 2>/dev/null | grep "^Repository" | awk '{print $3}' | tr -d '\r')
if [[ -z "$repo" ]]; then if [[ -z "$repo" ]]; then
echo "❌ MISSING: $pkg" echo "❌ MISSING: $pkg"