[pacman-dev] [PATCH] Create pacman keyring directory if missing

Ray Kohler ataraxia937 at gmail.com
Thu Mar 24 21:42:06 EDT 2011

On Thu, Mar 24, 2011 at 9:36 PM, Allan McRae <allan at archlinux.org> wrote:
> I agree.   I still think these folder should be created by "make install"
> but it makes sense for pacman-key to create the folder if it does not exist.
> My pacman-git PKGBUILD has this in it....
> install -dm700 $pkgdir/etc/pacman.d/gnupg
> touch $pkgdir/etc/pacman.d/gnupg/{sec,pub}ring.gpg
> chmod 600 $pkgdir/etc/pacman.d/gnupg/{sec,pub}ring.gpg
> Does not having those keyring files also cause issues here and need to be
> addressed?  Or have I just been over cautious in packaging there?

gpg will create the keyring files themselves if they don't exist. It
will only complain about the missing directory, and never try to fix
it, so it needs some hand-holding there.

More information about the pacman-dev mailing list