TEST-99-RPM: use releasever of the host system

master
Harald Hoyer 2018-08-16 13:20:40 +02:00
parent 7c62555bcf
commit 286685cb72
1 changed files with 2 additions and 2 deletions

View File

@ -30,12 +30,12 @@ test_run() {
"$TESTDIR"/dracut-[0-9]*.$(arch).rpm \
"$TESTDIR"/dracut-network-[0-9]*.$(arch).rpm \
"$rootdir/$TESTDIR/"

. /etc/os-release
dnf_or_yum=yum
dnf_or_yum_cmd=yum
command -v dnf >/dev/null && { dnf_or_yum="dnf"; dnf_or_yum_cmd="dnf --allowerasing"; }
for (( i=0; i < 5 ; i++)); do
$dnf_or_yum_cmd -v --nogpgcheck --installroot "$rootdir"/ --disablerepo='*' \
$dnf_or_yum_cmd -v --nogpgcheck --installroot "$rootdir"/ --releasever "$VERSION_ID" --disablerepo='*' \
--enablerepo=fedora --enablerepo=updates \
install -y \
$dnf_or_yum \