From 5355fdc71dbc8ca8bffb9958714235e0eb6757de Mon Sep 17 00:00:00 2001 From: Stefanie Eckner Date: Sun, 29 Dec 2024 14:57:38 +0100 Subject: find-package-differences: nimmt nun die db MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * kein Mount notwendig, wir können ja einfach in der Datenbank nachschauen --- find-package-differences | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'find-package-differences') 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 {} + \ -- cgit v1.2.3-70-g09d2