Commit 3bfaf9c0 authored by Michael Shigorin's avatar Michael Shigorin

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.
parent 524d38b0
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment