Be more image-mode friendly

This commit is contained in:
Václav Kadlčík 2025-08-15 09:58:38 +02:00
commit 799ade64a3

View file

@ -10,9 +10,11 @@ rlJournalStart
rlRun "TmpDir=\$(mktemp -d)"
rlRun "pushd $TmpDir"
rlFetchSrcForInstalled "$PACKAGE"
which dnf && \
rlRun "dnf builddep -y $PACKAGE*src.rpm" || \
rlRun "yum-builddep -y $PACKAGE*src.rpm"
if [[ -e /usr/bin/dnf ]]; then
rlRun "dnf builddep -y $PACKAGE*src.rpm" 0-255
else
rlRun "yum-builddep -y $PACKAGE*src.rpm" 0-255
fi
if rlIsFedora || rlIsRHEL '>9'; then
rlRun "export RPM_PACKAGE_NAME=$(rpm -q --qf='%{NAME}' -p $PACKAGE*src.rpm)"
rlRun "export RPM_PACKAGE_VERSION=$(rpm -q --qf='%{VERSION}' -p $PACKAGE*src.rpm)"