[Rpm-maint] [rpm-software-management/rpm] rpm package header based db backend (PR #1959)
Panu Matilainen
notifications at github.com
Fri Mar 18 09:31:37 UTC 2022
Fs based db backend has been talked about for so long that it's nice to see somebody actually try it out.
I didn't look too deeply, but it seems to me you're doing a whole lot of extra work to avoid something you shouldn't be avoiding, and creating additional problems in the process.
The backend should store the same exact data in the headers as the other backends do: the file states, install times and signature header contents are "piggybacked" after the immutable section (known as "dribbles" in the rpm lore). pkgdbPut() should essentially be "open a filename at desired location followed by write(fd, hdrBlob, hdrLen), and none of this import stuff. Just use the header number as the filename, and then you can actually create simple indexes at least for name and like, it's a rather simple "string -> int" file format afterall.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1959#issuecomment-1072233088
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/1959/c1072233088 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20220318/b56f359f/attachment-0001.html>
More information about the Rpm-maint
mailing list