summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/abslibre-tools/libredbdiff12
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"