[Rpm-maint] [Patch 10/19] Ignore excluded files for size
Paul Nasrat
pnasrat at redhat.com
Fri Feb 9 11:40:22 UTC 2007
This patch fixes up the calculation total install size when we have
excluded files in the manifest (rh#89661).
Index: rpm-4.4.2/build/files.c
===================================================================
--- rpm-4.4.2.orig/build/files.c
+++ rpm-4.4.2/build/files.c
@@ -1677,7 +1677,7 @@ static int addFile(FileList fl, const ch
} else
i = fl->fileListRecsUsed;
- if (S_ISREG(flp->fl_mode) && i >= fl->fileListRecsUsed)
+ if (!(flp->flags & RPMFILE_EXCLUDE) && S_ISREG(flp->fl_mode) && i >= fl->fileListRecsUsed)
fl->totalFileSize += flp->fl_size;
}
More information about the Rpm-maint
mailing list