diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-03 01:06:46 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-03 01:39:15 -0400 |
commit | 04f392eda74ccafeec512c28ebadb8932e320830 (patch) | |
tree | ea2aed3605893ac77b972cc92e3c09960fd1c651 /src/abslibre-tools/libredbdiff | |
parent | 2335251f5baaf7bd5f7a53ee703d3308c69beb0c (diff) |
libredbdiff: reformat print_cmp
Diffstat (limited to 'src/abslibre-tools/libredbdiff')
-rwxr-xr-x | src/abslibre-tools/libredbdiff | 18 |
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() { |