diff --git a/features.in/repo/scripts.d/02-pubring b/features.in/repo/scripts.d/02-pubring index b353202e..af1f5478 100755 --- a/features.in/repo/scripts.d/02-pubring +++ b/features.in/repo/scripts.d/02-pubring @@ -1,4 +1,9 @@ #!/bin/sh # generate current plaintext rpm pubring representation +KEYDIR="/usr/lib/alt-gpgkeys" -gpg --export --armor --homedir=/usr/lib/alt-gpgkeys >$WORKDIR/RPM-GPG-KEY +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