rpm/rpm-5.2.1-pkgUnpackagedSubdirs_fix_slowness.patch

13 lines
414 B
Diff
Raw Normal View History

diff -Nru rpm-5.2.1/build/files.c rpm-5.2.1.patched//build/files.c
--- rpm-5.2.1/build/files.c 2011-03-03 23:22:38.911216245 +0100
+++ rpm-5.2.1.patched//build/files.c 2011-03-03 23:22:01.034562736 +0100
@@ -3024,6 +3024,8 @@
fi = rpmfiInit(fi, 0);
while ((i = rpmfiNext(fi)) >= 0) {
+ if (!S_ISDIR(rpmfiFMode(fi)))
+ continue;
int found = 0;
/* make local copy of file name */
char *p = fn;