rpm_verify: do not try to import key when run as normal user
This commit is contained in:
parent
168e34510d
commit
ed9a728235
@ -37,8 +37,10 @@ if [ $# -lt 1 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Make sure that the right Qubes release key is imported (in chroot)
|
if [ -w /var/lib/rpm ]; then
|
||||||
rpm --import `dirname $0`/qubes-release/RPM-GPG-KEY-qubes-*-primary
|
# 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
|
for FILE in "$@"; do
|
||||||
verify_rpm $FILE || exit 1
|
verify_rpm $FILE || exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user