Skip to content

Commit

Permalink
test: prevent rpmbuild from writing to system rpmdb
Browse files Browse the repository at this point in the history
rpmbuild with default dbpath will write to /var/lib/rpm. Set it to the
temporary directory.
  • Loading branch information
pastalian committed Feb 12, 2024
1 parent aad06db commit 6c7075b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/data/build-rpms-and-repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ 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}" \
Expand Down

0 comments on commit 6c7075b

Please sign in to comment.