Fix tests: add core repo to allowed list, strip CR from pacman output
Tests / tests (push) Failing after 2m40s
Tests / tests (push) Failing after 2m40s
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user