diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-08 12:55:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-08 12:55:57 (GMT) |
commit | e8905c9e9c96b5b57f64edf0d5c7429aa39341b8 (patch) | |
tree | 532cfcdecd31fbe3f7496852b465450b2be2e1a7 /.github/mock.sh | |
parent | bd5608b9fc5d2b3db9f3c9026d279f8928ab4d0c (diff) | |
parent | 14aad851bc467baf89b5c181ac8ffcb4b42bb7bb (diff) | |
download | monitoring-plugins-e8905c9e9c96b5b57f64edf0d5c7429aa39341b8.tar.gz |
Merge branch 'master' into cleanup/leftoversrefs/pull/2043/head
Diffstat (limited to '.github/mock.sh')
-rwxr-xr-x | .github/mock.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/.github/mock.sh b/.github/mock.sh index 87543ce..ea4f7f3 100755 --- a/.github/mock.sh +++ b/.github/mock.sh | |||
@@ -52,13 +52,16 @@ if command -v git > /dev/null 2>&1; then | |||
52 | fi | 52 | fi |
53 | 53 | ||
54 | mkdir -p "${SRCRPM_DIR}" "${RPM_DIR}" | 54 | mkdir -p "${SRCRPM_DIR}" "${RPM_DIR}" |
55 | #rpmbuild --undefine=_disable_source_fetch --define "_sourcedir ${SOURCE_DIR}" -ba ${SPEC_FILE} | 55 | |
56 | # Run mock below | ||
57 | # No idea what happens here to be honest | ||
58 | # mock seems to run more containers to build the package | ||
56 | dnf -y --setopt="tsflags=nodocs" install rpmdevtools && \ | 59 | dnf -y --setopt="tsflags=nodocs" install rpmdevtools && \ |
57 | spectool -g -C ${SOURCE_DIR} ${SPEC_FILE} && \ | 60 | spectool -g -C ${SOURCE_DIR} ${SPEC_FILE} && \ |
58 | { mock --dnf --clean --spec ${SPEC_FILE} --sources=${SOURCE_DIR} --result=${SRCRPM_DIR} --build || \ | 61 | mock --init && \ |
59 | { cat ${SRCRPM_DIR}/{root,build}.log; exit 1; } } | 62 | { mock --no-clean --spec ${SPEC_FILE} --sources=${SOURCE_DIR} --result=${SRCRPM_DIR} --build || \ |
60 | 63 | { cat ${SRCRPM_DIR}/{root,build}.log; exit 1; } } && \ | |
61 | mock --dnf --clean --sources=${SOURCE_DIR} --result=${RPM_DIR} --rebuild "${SRCRPM_DIR}"/${SRC_RPM} || \ | 64 | { mock --no-clean --sources=${SOURCE_DIR} --result=${RPM_DIR} --rebuild "${SRCRPM_DIR}"/${SRC_RPM} || \ |
62 | { cat ${RPM_DIR}/{root,build}.log; exit 1; } | 65 | { cat ${RPM_DIR}/{root,build}.log; exit 1; } } |
63 | 66 | ||
64 | ls -la ${SOURCE_DIR} ${SRCRPM_DIR} ${RPM_DIR} | 67 | ls -la ${SOURCE_DIR} ${SRCRPM_DIR} ${RPM_DIR} |