summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-03 01:26:21 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-03 01:44:07 -0400
commit5780668f2c67706d8886ae54e69307fed30169e5 (patch)
treee1e20d5be028bf12604e2a490f5189ebc6446097
parentb151b5d900c31759925405e4065f240417156008 (diff)
libredbdiff: loop
-rwxr-xr-xsrc/abslibre-tools/libredbdiff7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff
index 8aa6ce1..1c3bad1 100755
--- a/src/abslibre-tools/libredbdiff
+++ b/src/abslibre-tools/libredbdiff
@@ -123,10 +123,9 @@ print_cmp() {
< "$prbl_packages_tmp" \
awk -F/ -v repo="$repo" '$1 == repo {print $2}' |
- while read -a line ; do
- ver_prbl["${line[0]}"]="${line[1]}"
- provides["${line[0]}"]="${line[*]:2}"
- pkgname="${line[0]}"
+ while read -r pkgname _pkgver _provides ; do
+ ver_prbl["$pkgname"]="$_pkgver"
+ provides["$pkgname"]="$_provides"
compare_pkgs
done
}