diff options
author | Stefanie Eckner <stefanie@eckner.net> | 2024-12-29 14:57:38 +0100 |
---|---|---|
committer | Stefanie Eckner <stefanie@eckner.net> | 2024-12-29 14:58:59 +0100 |
commit | 5355fdc71dbc8ca8bffb9958714235e0eb6757de (patch) | |
tree | 7ba4f48f9e85910548bd75d0794aa4275a87d0c4 /find-package-differences | |
parent | 6d5e334ba24bee121aa48b4da0eee2ae34922564 (diff) | |
download | archlinuxewe-5355fdc71dbc8ca8bffb9958714235e0eb6757de.tar.xz |
find-package-differences: nimmt nun die db
* kein Mount notwendig, wir können ja einfach in der Datenbank nachschauen
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 {} + \ |