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 /usr/lib/rpm/ will no longer put everything under /usr/lib/rpm in the file list. Cheers, Michael. -- Michael Schroeder m...@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} _______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint