Skip to content

Commit

Permalink
archlinux-keyring: Sync with archlinux
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jung <[email protected]>
  • Loading branch information
ptr1337 committed Sep 14, 2024
1 parent 72f36d6 commit ca3b413
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion archlinux-keyring/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgname=archlinux-keyring
pkgver=20240709
pkgrel=2
pkgrel=3
pkgdesc='Arch Linux PGP keyring'
arch=('any')
url='https://gitlab.archlinux.org/archlinux/archlinux-keyring/'
Expand Down
17 changes: 15 additions & 2 deletions archlinux-keyring/archlinux-keyring.install
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
#!/bin/sh

post_upgrade() {
populate_archlinux() {
if usr/bin/pacman-key -l >/dev/null 2>&1; then
usr/bin/pacman-key --populate archlinux
fi
}


post_upgrade() {
# Older versions of pacman (before 6.1.0) disabled locking by default:
# https://gitlab.archlinux.org/pacman/pacman/-/commit/1d1bb6fa1a8247242fbdd226f50265a278a12ac8
#
# This still causes lots of problems, so force to remove that option.
if grep -qx 'lock-never' etc/pacman.d/gnupg/gpg.conf 2>/dev/null; then
sed -i '/^lock-never$/d' etc/pacman.d/gnupg/gpg.conf
fi

populate_archlinux
}

post_install() {
if [ -x usr/bin/pacman-key ]; then
post_upgrade
populate_archlinux
fi
}

0 comments on commit ca3b413

Please sign in to comment.