Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix rpmdb --exportdb from database on read-only media
Read-only media doesn't need any locking by definition. But if the file we're trying to open doesn't exist there, we can't very well open it for even reading, causing the unnecessary locking to fail unnecessarily. Feed it a dup of our STDIN_FILENO to keep the beast happy. Couldn't figure how to get a read-only mount inside the test-root so we need to add a pre-generated rpmdb and then run it without having the test-image read-write mounted. The rpmdb file is ridiculously big just for testing this corner-case purpose, but maybe it could be used to speed up some other tests later on. Fixes: rpm-software-management#3371 rpm-software-management#1266
- Loading branch information