summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-02 17:40:28 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-03 01:40:49 -0400
commit56ebbc577bcc84749c361ae8d7fe1c8c4071f354 (patch)
treef89c5604364598a07e1143c0426be815f9c4970b
parent43bbfe78d09f95edd216487f944fbf03f33ed6c4 (diff)
libredbdiff: loop
-rwxr-xr-xsrc/abslibre-tools/libredbdiff5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff
index 04180be..60eae7c 100755
--- a/src/abslibre-tools/libredbdiff
+++ b/src/abslibre-tools/libredbdiff
@@ -337,8 +337,9 @@ arguments as root to initialize %s." "$cmd" "$name"
> "$arch_packages_tmp" || \
die "pacman command to get Arch package data has failed. Exiting."
- while read -a line; do
- ver_arch["${line[0]}"]="${line[1]}"
+ local pkgname pkgver rest
+ while read -r pkgname pkgver rest; do
+ ver_arch["$pkgname"]="$pkgver"
done < "$arch_packages_tmp"
expac --config "$conffile_prbl" -S '%r/%n %v %S' \