summaryrefslogtreecommitdiff
path: root/src/abslibre-tools/libredbdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-03 01:06:46 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-03 01:39:15 -0400
commit04f392eda74ccafeec512c28ebadb8932e320830 (patch)
treeea2aed3605893ac77b972cc92e3c09960fd1c651 /src/abslibre-tools/libredbdiff
parent2335251f5baaf7bd5f7a53ee703d3308c69beb0c (diff)
libredbdiff: reformat print_cmp
Diffstat (limited to 'src/abslibre-tools/libredbdiff')
-rwxr-xr-xsrc/abslibre-tools/libredbdiff18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff
index badb69e..4d7fca2 100755
--- a/src/abslibre-tools/libredbdiff
+++ b/src/abslibre-tools/libredbdiff
@@ -201,15 +201,15 @@ compare_pkgs() {
# - provides
print_cmp() {
local repo="$1"
- awk -F/ -v repo="$repo" \
- '$1 == repo {print $2}' \
- "$prbl_packages_tmp" | \
- while read -a line ; do
- ver_prbl["${line[0]}"]="${line[1]}"
- provides["${line[0]}"]="${line[*]:2}"
- pkgname="${line[0]}"
- compare_pkgs
- done
+
+ < "$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]}"
+ compare_pkgs
+ done
}
usage() {