githook: Fix showing pkgs in commit message

Quick fix to show difference in committed and installed
packages in the commit editor window again.
Due to Arch moving the base-devel package from a group
to a meta-package we can not just remove all packages
that are in the group anymore - it will simply error
out instead. This removes the check and thus provides
a quick and dirty fix for the time being.
This commit is contained in:
Marty Oehme 2023-06-07 10:29:15 +02:00
parent bce5675795
commit 60b89b6d30
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@ COMMIT_SOURCE="$2"
BOOTSTRAPDIR="bootstrap"
pkg_committed="$(cat "$(git rev-parse --show-toplevel)"/$BOOTSTRAPDIR/packages*.tsv | grep -v -e '^Name Description Source Target' | cut -f1 | sort)"
pkg_onsystem=$(pacman -Qqett | grep -v "$(pacman -Qqg base-devel)" | sort)
pkg_onsystem=$(pacman -Qqett | sort)
# get files only in repo, and only on machine
only_committed=$(comm -23 <(echo "$pkg_committed") <(echo "$pkg_onsystem"))