Merge pull request #2057 from RincewindsHat/fix/test_rpm_build

Fix breakage in rpm build test due to changes in mock
This commit is contained in:
Lorenz Kästle 2024-12-29 19:42:47 +01:00 committed by GitHub
commit e301a9410d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
.github/mock.sh vendored
View file

@ -59,7 +59,7 @@ mkdir -p "${SRCRPM_DIR}" "${RPM_DIR}"
dnf -y --setopt="tsflags=nodocs" install rpmdevtools && \
spectool -g -C ${SOURCE_DIR} ${SPEC_FILE} && \
mock --init && \
{ mock --no-clean --spec ${SPEC_FILE} --sources=${SOURCE_DIR} --result=${SRCRPM_DIR} --build || \
{ mock --no-clean --spec ${SPEC_FILE} --sources=${SOURCE_DIR} --result=${SRCRPM_DIR} --buildsrpm || \
{ cat ${SRCRPM_DIR}/{root,build}.log; exit 1; } } && \
{ mock --no-clean --sources=${SOURCE_DIR} --result=${RPM_DIR} --rebuild "${SRCRPM_DIR}"/${SRC_RPM} || \
{ cat ${RPM_DIR}/{root,build}.log; exit 1; } }