Fix tests: add core repo to allowed list, strip CR from pacman output
Tests / tests (push) Failing after 2m40s

This commit is contained in:
2026-09-15 08:17:24 +10:00
parent c119d3b419
commit 5b9463f055
+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)$"
ALLOWED_REPOS="^(core|extra|multilib|cachyos|chaotic-aur)$"
MISSING=()
FOUND=0
TOTAL=0
@@ -202,8 +202,8 @@ jobs:
[[ -z "$pkg" || "$pkg" =~ ^# ]] && continue
TOTAL=$((TOTAL + 1))
# Query pacman for the package's repository
repo=$(pacman -Si "$pkg" 2>/dev/null | grep "^Repository" | awk '{print $3}')
# Query pacman for the package's repository (strip \r just in case)
repo=$(pacman -Si "$pkg" 2>/dev/null | grep "^Repository" | awk '{print $3}' | tr -d '\r')
if [[ -z "$repo" ]]; then
echo "❌ MISSING: $pkg"