From 86680fb8b0834339888392ec0c2c23a31d88a1f6 Mon Sep 17 00:00:00 2001 From: Jan Kurik Date: Tue, 18 Jul 2023 14:50:34 +0200 Subject: [PATCH] Fixed download of the source RPM for Fedora --- tests/Sanity/licence-check/test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Sanity/licence-check/test.sh b/tests/Sanity/licence-check/test.sh index cc788ac..f2ee4ab 100755 --- a/tests/Sanity/licence-check/test.sh +++ b/tests/Sanity/licence-check/test.sh @@ -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}"