diff options
Diffstat (limited to 'find-package-differences')
-rwxr-xr-x | find-package-differences | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/find-package-differences b/find-package-differences index fb5a48f84..a9c6d2181 100755 --- a/find-package-differences +++ b/find-package-differences @@ -58,12 +58,6 @@ if [ $# -ne 0 ]; then exit 1 fi -if ! mountpoint -q /mnt/archlinuxewe \ -&& ! ls /mnt/archlinuxewe | grep -qF ''; then - >&2 printf '/mnt/archlinuxewe is empty\n' - exit 1 -fi - tmp_dir=$(mktemp -d) trap 'rm -rf --one-file-system "${tmp_dir}"' EXIT @@ -85,7 +79,7 @@ print_names() { exit 1 fi for arch in "${archs[@]}"; do - printf '%s-%s%s-%s-%s.pkg.tar.xz\n' \ + printf '%s-%s%s-%s-%s.pkg.tar.zst\n' \ "${pkgname}" \ "${epoch:+${epoch}:}" \ "${pkgver}" \ @@ -95,7 +89,12 @@ print_names() { } diff -u --color <( - find /mnt/archlinuxewe -type f -name '*.pkg.tar.xz' -printf '%f\n' \ + bsdtar -Oxf /var/lib/pacman/sync/archlinuxewe.db \ + | sed ' + /^%FILENAME%$/ !d + N + s/^.*\n// + ' \ | sort -u ) <( find "$tmp_dir" -name '*.srcinfo' -exec cat {} + \ |