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"
|
||||||
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user