rpm_verify: do not try to import key when run as normal user

This commit is contained in:
Marek Marczykowski-Górecki 2015-04-14 23:42:48 +02:00
parent 168e34510d
commit ed9a728235

View File

@ -37,8 +37,10 @@ if [ $# -lt 1 ]; then
exit 1
fi
# Make sure that the right Qubes release key is imported (in chroot)
rpm --import `dirname $0`/qubes-release/RPM-GPG-KEY-qubes-*-primary
if [ -w /var/lib/rpm ]; then
# Make sure that the right Qubes release key is imported (in chroot)
rpm --import `dirname $0`/qubes-release/RPM-GPG-KEY-qubes-*-primary
fi
for FILE in "$@"; do
verify_rpm $FILE || exit 1