[Rpm-maint] [rpm-software-management/rpm] Fix rename() calls in lib/rpmdb.c (#1754)

Florian Festi notifications at github.com
Wed Jan 26 14:48:55 UTC 2022


Sorry, I understand this was a lot of work to do, but this is not the way to deal with this. We are using `rename` for a reason: To replace the database as atomically as possible.
The issue here is that this setup is using a separate file systems for `/var/lib/rpm` which we are trying to replace. Just build the docker container differently.
We might consider a option to build the new rpm database within a sub directory of `/var/lib/rpm` and then move it up in place file by file. But we really don't want some 300 lines of new code just to copy files around.

Closing.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1754#issuecomment-1022268372
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/1754/c1022268372 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220126/1c819c18/attachment-0001.html>


More information about the Rpm-maint mailing list