strongswan / swidGenerator

Application which generates SWID-Tags from Linux package managers like dpkg, rpm or pacman.
MIT License
16 stars 11 forks source link

Issue33 file listing #5

Closed cfaessler closed 10 years ago

cfaessler commented 10 years ago

rpm -ql and dpkg-query are dumping files and directories, e.g /usr/bin /usr/bin/cowsay But we only want to include normal files and links (no directories) A simple check whether an a line is a file or directory is not a proper solution, Because some files or directories dont exist.

E.g see files included in dump of rpm -ql in file tests/samplesyum-filesystem.txt compared to directory listing in test/samples/fedora-dir-man.txt The directory /usr/share/man/aa listed by rpm -ql does not exist (and obviously all underlying files dont)

cfaessler commented 10 years ago

I used rpm -ql instead of repoquery (from yum-utils package) Seems to work and avoids querying remote repo. Full discussion here: https://github.com/tnc-ba/strongTNC/issues/33

dbrgn commented 10 years ago

Done :D