[Rpm-maint] RPM 4.9.1 released!

Michael Schroeder mls at suse.de
Thu Jul 21 12:25:23 UTC 2011

On Thu, Jul 21, 2011 at 10:53:02AM +0200, Michael Schroeder wrote:
> Sine commit 23167c3e, everything tagged %dir will get a trailing
> slash in the file list, breaking lots of things. I've worked around
> this in the suse package, but a clean fix is probably to pass
> a "RPMGLOB_ONLYDIR" flag to rpmGlob() instead of adding a trailing
> slash. (Or change addFile() to strip trailing slashes.)

Update: That

+    if (trailing_slash && !fl->isDir)
+       fl->isDir = -1;

also broke some packages, as fl->isDir != 0 means that rpm
will not call recurseDir(). Thus a filelist entry like


will no longer put everything under /usr/lib/rpm in the file


Michael Schroeder                                   mls at suse.de
SUSE LINUX Products GmbH,  GF Jeff Hawn, HRB 16746 AG Nuernberg

More information about the Rpm-maint mailing list