Recognize localrepo and build-end4-deps.sh in package check
Tests / tests (push) Successful in 2m43s

This commit is contained in:
2026-09-15 09:13:44 +10:00
parent 75918f9dfd
commit a0d2dbf009
2 changed files with 18 additions and 20 deletions
+18 -2
View File
@@ -190,6 +190,8 @@ jobs:
echo "═══════════════════════════════════════════════════════════════" echo "═══════════════════════════════════════════════════════════════"
echo " Checking packages.x86_64 against repos" echo " Checking packages.x86_64 against repos"
echo " Allowed repos: cachyos, extra, multilib, chaotic-aur" echo " Allowed repos: cachyos, extra, multilib, chaotic-aur"
echo " Also accepted: localrepo/ pre-built packages"
echo " Also accepted: packages listed in build-end4-deps.sh"
echo "═══════════════════════════════════════════════════════════════" echo "═══════════════════════════════════════════════════════════════"
ALLOWED_REPOS="^(core|extra|multilib|cachyos|chaotic-aur)$" ALLOWED_REPOS="^(core|extra|multilib|cachyos|chaotic-aur)$"
@@ -202,9 +204,8 @@ jobs:
[[ -z "$pkg" || "$pkg" =~ ^# ]] && continue [[ -z "$pkg" || "$pkg" =~ ^# ]] && continue
TOTAL=$((TOTAL + 1)) TOTAL=$((TOTAL + 1))
# Query pacman for the package's repository (all matches, strip \r) # 1) Check allowed repos via pacman
repos=$(pacman -Si "$pkg" 2>/dev/null | grep "^Repository" | awk '{print $3}' | tr -d '\r') repos=$(pacman -Si "$pkg" 2>/dev/null | grep "^Repository" | awk '{print $3}' | tr -d '\r')
# Check if ANY of the repos is in the allowed list
MATCHED=0 MATCHED=0
for repo in $repos; do for repo in $repos; do
if [[ "$repo" =~ $ALLOWED_REPOS ]]; then if [[ "$repo" =~ $ALLOWED_REPOS ]]; then
@@ -213,6 +214,21 @@ jobs:
break break
fi fi
done done
# 2) Check localrepo/ for a pre-built .pkg.tar.zst
if [[ $MATCHED -eq 0 ]] && compgen -G "localrepo/${pkg}-*.pkg.tar.zst" > /dev/null 2>&1; then
MATCHED=1
FOUND=$((FOUND + 1))
echo "📦 LOCAL: $pkg (pre-built in localrepo/)"
fi
# 3) Check build-end4-deps.sh for the package name
if [[ $MATCHED -eq 0 ]] && grep -qxF "${pkg}" localrepo/build-end4-deps.sh 2>/dev/null; then
MATCHED=1
FOUND=$((FOUND + 1))
echo "📦 BUILD: $pkg (listed in build-end4-deps.sh)"
fi
if [[ $MATCHED -eq 0 ]]; then if [[ $MATCHED -eq 0 ]]; then
if [[ -z "$repos" ]]; then if [[ -z "$repos" ]]; then
echo "❌ MISSING: $pkg" echo "❌ MISSING: $pkg"
-18
View File
@@ -29,7 +29,6 @@ btrfs-progs
bully bully
cachyos-keyring cachyos-keyring
cachyos-mirrorlist cachyos-mirrorlist
catppuccin-cursors-macchiato
cava cava
celt celt
chaotic-keyring chaotic-keyring
@@ -68,9 +67,6 @@ efibootmgr
electron electron
element-desktop element-desktop
espeakup espeakup
eternalterminal
eternalterminal-client
eternalterminal-server
ethtool ethtool
exfatprogs exfatprogs
f2fs-tools f2fs-tools
@@ -116,7 +112,6 @@ gpm
gptfdisk gptfdisk
grml-zsh-config grml-zsh-config
grub grub
grub-customizer
gst-plugins-base gst-plugins-base
gst-plugins-ugly gst-plugins-ugly
gst-plugin-va gst-plugin-va
@@ -207,7 +202,6 @@ mdadm
memtest86+ memtest86+
memtest86+-efi memtest86+-efi
meson meson
meshy-git
mkinitcpio mkinitcpio
mkinitcpio-archiso mkinitcpio-archiso
mkinitcpio-nfs-utils mkinitcpio-nfs-utils
@@ -252,9 +246,7 @@ open-vm-tools
openvpn openvpn
os-prober os-prober
otf-font-awesome otf-font-awesome
otf-space-grotesk
pacman-contrib pacman-contrib
pacserve
pamixer pamixer
partclone partclone
parted parted
@@ -290,7 +282,6 @@ qemu-guest-agent
qt5-quickcontrols2 qt5-quickcontrols2
qt6ct qt6ct
qt6-5compat qt6-5compat
qt6-avif-image-plugin
qt6-imageformats qt6-imageformats
qt6-multimedia qt6-multimedia
qt6-positioning qt6-positioning
@@ -303,7 +294,6 @@ qt6-wayland
rclone rclone
refind refind
reflector reflector
rpi-imager-git
rsync rsync
rxvt-unicode-terminfo rxvt-unicode-terminfo
samba samba
@@ -321,16 +311,13 @@ shelly
shelly-flatpak-backend shelly-flatpak-backend
shfmt shfmt
smartmontools smartmontools
snapd
sof-firmware sof-firmware
sox sox
songrec songrec
speech-dispatcher speech-dispatcher
squashfs-tools squashfs-tools
sshfs sshfs
ssh-import-id
starship starship
steam
sudo sudo
swaync swaync
syncthing syncthing
@@ -368,9 +355,7 @@ ttf-jetbrains-mono-nerd
ttf-material-symbols-variable-git ttf-material-symbols-variable-git
ttf-ms-fonts ttf-ms-fonts
ttf-readex-pro ttf-readex-pro
ttf-rubik-vf
ttf-twemoji ttf-twemoji
ttf-victor-mono
tty-clock tty-clock
tumbler tumbler
udftools udftools
@@ -378,7 +363,6 @@ uget
umockdev umockdev
unrar unrar
upower upower
upscayl-bin
uriparser uriparser
usbguard usbguard
usb_modeswitch usb_modeswitch
@@ -392,7 +376,6 @@ vim
virt-manager virt-manager
virtualbox-guest-utils-nox virtualbox-guest-utils-nox
vpnc vpnc
wallust
wayland-protocols wayland-protocols
wine wine
winetricks winetricks
@@ -409,7 +392,6 @@ xdg-user-dirs
xdotool xdotool
xfsprogs xfsprogs
xl2tpd xl2tpd
xwaylandvideobridge
yay yay
ydotool ydotool
yt-dlp yt-dlp