blob: 2f5fe26dae4a0d86d46034ca3f2f9931518b3fd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
Prevent test suite from writing to system files.
--- a/test/data/build-rpms-and-repos.sh
+++ b/test/data/build-rpms-and-repos.sh
@@ -32,12 +32,14 @@ function build_rpms() {
# Note: _build_name_fmt requires escaped %% for use in headerSprintf()
rpmbuild -ba \
+ --dbpath "${RPMBUILD_TOPDIR}" \
--define="_topdir ${RPMBUILD_TOPDIR}" \
--define="_srcrpmdir ${TARGET_DIR}" \
--define="_rpmdir ${TARGET_DIR}" \
--define="_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \
--define="_source_payload w1.gzdio" \
--define="_binary_payload w1.gzdio" \
+ --nodeps \
"${SPEC}"
rm -rf "${RPMBUILD_TOPDIR}"
|