Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/makepkg.sh.in10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index d35dd62d..8ee0f5c5 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -700,13 +700,11 @@ write_buildinfo() {
write_kv_pair "buildenv" "${BUILDENV[@]}"
write_kv_pair "options" "${OPTIONS[@]}"
- local pkglist=($(run_pacman -Qq))
- local pkginfos="$(LC_ALL=C run_pacman -Qi ${pkglist[@]})"
- local pkginfos_parsed=($(awk -F': ' '\
- /^Name .*/ {printf $2} \
- /^Version .*/ {printf "-"$2} \
+ local pkginfos_parsed=($(LC_ALL=C run_pacman -Qi | awk -F': ' '\
+ /^Name .*/ {printf "%s", $2} \
+ /^Version .*/ {printf "-%s", $2} \
/^Architecture .*/ {print "-"$2} \
- ' <<< "${pkginfos}"))
+ '))
write_kv_pair "installed" "${pkginfos_parsed[@]}"
}