GNOME Bugzilla – Bug 551153
[PATCH] rpm: display empty directories and support device files
Last modified: 2008-09-07 06:52:11 UTC
Please describe the problem: Currently the rpm parser discards the directories. This is a problem for two reasons: * empty directories are never displayed (while installing the rpm will create those directories) * in the flat hierachy mode, there is not directory displayed at all, which is different from the other type of archives. I'll attach a patch which fixes this problem (and also permit to correctly display devices files). Steps to reproduce: An exemple of rpm with lots of empty directories can be found there: ftp://ftp.free.fr/mirrors/ftp.mandrake-linux.com/Mandrakelinux/devel/cooker/x86_64/media/main/release/filesystem-2.1.9-5mdv2009.0.x86_64.rpm Actual results: Just a couple of files are shown. Expected results: The whole standard unix hierarchy should be shown. Does this happen every time? yes Other information:
Created attachment 118177 [details] [review] Add support to show empty directories and special device files in rpm This patch actually aligns completely cpio support with rpm support (once patch of bug 551146 has also been applied).
patch applied to trunk, thanks.