Unify obtaining 'relesever'

Continuation of https://pagure.io/fedora-kickstarts/c/19a7b3b113d97db14d27f6a86db3c7479453a5ea?branch=master
but across entire repository.
This commit is contained in:
Damian Wrobel
2019-07-17 10:49:05 +02:00
parent 2976215122
commit 68b6257e0e
7 changed files with 7 additions and 7 deletions

View File

@@ -304,7 +304,7 @@ EOF
# work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db*
releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release)
releasever=$(rpm --eval '%{fedora}')
basearch=$(uname -i)
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
echo "Packages within this LiveCD"