From ed9a72823532e2406dfcd7331ca5d56b855b0296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 14 Apr 2015 23:42:48 +0200 Subject: [PATCH] rpm_verify: do not try to import key when run as normal user --- rpm_verify | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rpm_verify b/rpm_verify index ce52fb4..4855a74 100755 --- a/rpm_verify +++ b/rpm_verify @@ -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