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)
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)