I've spent some time in the package-management
source tree, and unpacking packagedb
, filesdb
, etc..
From what I gathered, it looks like the list of files for each package is not embedded in the repo's index.xml
. Rather, it is read from an installed package's files.xml
with each install operation.
filesdb
, the file eopkg sf
uses, is a shelved python dict that takes this structure: { 'path md5 digest': 'package name' }
. Structuring a larger db like this but for all packages in the repo should be trivial, but the real issue would be the need to fetch and unpack the entirety of Shannon's 10k+ packages and reading the files.xml
for each package :c
I had the intentions to write either a patch or an external tool to introduce this functionality but looks like I'm stopped in my tracks -- now that I understand the repo infrastructure.