mkimage-profiles/features.in/repo/scripts.d/02-pubring
Michael Shigorin 3bfaf9c014 repo: harden against missing keydir
rpm-4.13 stopped bringing alt-gpgkeys in, and specifying it
explicitly for STAGE1_PACKAGES didn't help somehow; don't presume
/usr/lib/alt-gpgkeys/ existence anyways.
2016-12-26 17:23:11 +03:00

10 lines
268 B
Bash
Executable File

#!/bin/sh
# generate current plaintext rpm pubring representation
KEYDIR="/usr/lib/alt-gpgkeys"
if [ -d "$KEYDIR" ]; then
gpg --export --armor --homedir="$KEYDIR" >$WORKDIR/RPM-GPG-KEY
else
echo "** warning: skipping RPM-GPG-KEY generation, $KEYDIR missing" >&2
fi