Fixed download of the source RPM for Fedora

This commit is contained in:
Jan Kurik 2023-07-18 14:50:34 +02:00
parent 291f6783ed
commit 86680fb8b0

View File

@ -28,9 +28,9 @@ rlJournalStart
fi
# Get list of rpms
rlRun "yum download --source ${PACKAGE}"
#rlFetchSrcForInstalled --quiet "${RPM}" || \
# rlDie 'Can not get source package of ${PACKAGE} .... giving up...'
#rlRun "yum download --source ${PACKAGE}"
rlFetchSrcForInstalled --quiet "${RPM}" || \
rlDie 'Can not get source package of ${PACKAGE} .... giving up...'
SOURCEPKG=$(rpm -q --qf ${PACKAGE}'-%{version}-%{release}.src.rpm' ${RPM})
rlAssertExists "${tmp}/${SOURCEPKG}"
rlRun "rpm -D '_topdir ${tmp}' -i ${tmp}/${SOURCEPKG}"