diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-03 01:26:21 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-03 01:44:07 -0400 |
commit | 5780668f2c67706d8886ae54e69307fed30169e5 (patch) | |
tree | e1e20d5be028bf12604e2a490f5189ebc6446097 | |
parent | b151b5d900c31759925405e4065f240417156008 (diff) |
libredbdiff: loop
-rwxr-xr-x | src/abslibre-tools/libredbdiff | 7 |
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 } |