diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-02 19:17:20 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-03 01:41:21 -0400 |
commit | 6d0f63e52869070870e3192511c230d479c41939 (patch) | |
tree | 404c48469dc7645d21885d2608e39f2f447d34db /src | |
parent | 34163178251d3237a453d5ede1bf2c47dfd96e8d (diff) |
libredbdiff: Use expac instead of pacman where possible
Diffstat (limited to 'src')
-rwxr-xr-x | src/abslibre-tools/libredbdiff | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/abslibre-tools/libredbdiff b/src/abslibre-tools/libredbdiff index 1f923cc..65ba4d6 100755 --- a/src/abslibre-tools/libredbdiff +++ b/src/abslibre-tools/libredbdiff @@ -292,20 +292,18 @@ arguments as root to initialize %s." "$cmd" "$name" unset provides ver_prbl ver_arch declare -gA provides ver_prbl ver_arch - pacman --config "$conffile_arch" -Ss | \ - grep -v '^ ' | \ - awk -F/ '{print $2}' \ + expac --config "$conffile_arch" -S '%n %v' \ > "$arch_packages_tmp" || \ - die "pacman command to get Arch package data has failed. Exiting." + die "expac command to get %s package data has failed. Exiting." Arch - local pkgname pkgver rest - while read -r pkgname pkgver rest; do + local pkgname pkgver + while read -r pkgname pkgver; do ver_arch["$pkgname"]="$pkgver" done < "$arch_packages_tmp" expac --config "$conffile_prbl" -S '%r/%n %v %S' \ > "$prbl_packages_tmp" || \ - die "expac command to get Parabola package data has failed. Exiting." + die "expac command to get %s package data has failed. Exiting." Parabola if [[ $# == 1 ]]; then print_cmp "$1" |