From 713c389150e4903afc16e9f60584346ff85c627d Mon Sep 17 00:00:00 2001 From: Alad Wenter Date: Thu, 23 Mar 2023 00:33:17 +0100 Subject: [PATCH] build: parse pacman diagnostics --- lib/aur-build | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/aur-build b/lib/aur-build index 5274c553..754a556f 100755 --- a/lib/aur-build +++ b/lib/aur-build @@ -441,14 +441,12 @@ while IFS= read "${read_args[@]}" -ru "$fd" path; do # Retrieve upgrade targets targets=() - while IFS='/' read -ra line; do - repo=${line[0]} - case $repo in + while IFS=/ read -ra line; do + case ${line[0]} in ::\ *) # pacman prints diagnostics to standard output printf >&2 '%s\n' "${line[*]}" ;; "$db_name") - name=${line[1]} - targets+=("$db_name/$name") ;; + targets+=("$db_name/${line[1]}") ;; esac done < <(LANG=C pacman -Sup --print-format '%r/%n') wait "$!" -- 2.11.4.GIT