After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 551153 - [PATCH] rpm: display empty directories and support device files
[PATCH] rpm: display empty directories and support device files
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
2.23.x
Other All
: Normal normal
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
Depends on:
Blocks:
 
 
Reported: 2008-09-06 19:56 UTC by Eric Piel
Modified: 2008-09-07 06:52 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
Add support to show empty directories and special device files in rpm (2.56 KB, patch)
2008-09-06 19:59 UTC, Eric Piel
none Details | Review

Description Eric Piel 2008-09-06 19:56:10 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:
Comment 1 Eric Piel 2008-09-06 19:59:51 UTC
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).
Comment 2 Paolo Bacchilega 2008-09-07 06:52:11 UTC
patch applied to trunk, thanks.