summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
}