Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: Set _dbpath back to /usr/share/rpm after writing rpmdb
We temporarily set the rpmdb path to be an absolute path pointing under the tmprootfs when writing the rpmdb. This throws off libsolv 0.7.17, which learned to give the `_dbpath` macro precedence on where the rpmdb is located: openSUSE/libsolv@04d4d03 So then the rpmdb sanity-check we do when exiting `rpmostree_context_assemble()` breaks because it can't find the expected packages. Because RPM macros are in global state, there's no elegant way of setting it just for the rpmdb write operation (short of forking), so just fix this by setting `_dbpath` back to the correct value after we're done writing the rpmdb. Closes: coreos/fedora-coreos-tracker#723
- Loading branch information