[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Eternal 'good file hashes' list

On Tue, 20 Oct 2009, Ralf Ertzinger wrote:


On Tue, 20 Oct 2009 14:18:03 +0300 (EEST), Panu Matilainen wrote:

To make any use of that data you'll obviously need the file names
too, so:
[pmatilai localhost Packages]$ rpm -qap --qf "[%{filedigests} %{filenames}\n]" *.rpm |wc
 430716  804104 47467960

That has to be databased somehow, probably compressed... hm.
Might not turn out all that bad spacewise.

...but rpm stores paths indexed by directory, storing flat paths as
returned by %{filenames} wastes tonnes of space. Also note that
directories and symlinks dont have associated hashes. And of course
there's a whole lot more metadata that you need to take into account
when verifying: user+group, permissions, symlink targets etc.

So basically the RPM file content without the actual file contents,

You could, of course, just have koji keep the pkgs and then you could use the existing metadata to grab the header from the pkgs and access the information that way.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]