repos are now parsed from pacman.conf

This commit is contained in:
2025-05-21 03:50:51 +02:00
parent d44f58cdd7
commit 6882433c77

View File

@@ -1,7 +1,7 @@
#!/usr/bin/bash
updatesAvailable() {
repos=("core-x86-64-v3" "extra-x86-64-v3" "multilib-x86-64-v3")
repos=$(grep '^\[' /etc/pacman.conf | sed -e 's/[][]//g' | grep -E 'x86-64-v[2-4]')
output_json=false
check_pkg=""
@@ -22,7 +22,7 @@ updatesAvailable() {
declare -A pkgs
yay -Sl "${repos[@]}" | while read -r _ name version status; do
pacman -Sl "${repos[@]}" | while read -r _ name version status; do
if [[ $status == *installed* ]]; then
pkgs["$name"]=1
fi