summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2012-07-02 17:19:03 +0300
committerPanu Matilainen <pmatilai@redhat.com>2012-07-02 17:19:03 +0300
commitcf3069b4d9a2d872737d93d3aef1e32097f3f3e6 (patch)
tree6f84cfa88e0d0cbca20811fdbe9f3e4ac5a2d0ba /build
parent338f6e4cf76807744aac31016c9f357631bc7d86 (diff)
downloadlibrpm-tizen-cf3069b4d9a2d872737d93d3aef1e32097f3f3e6.tar.gz
librpm-tizen-cf3069b4d9a2d872737d93d3aef1e32097f3f3e6.tar.bz2
librpm-tizen-cf3069b4d9a2d872737d93d3aef1e32097f3f3e6.zip
Also track large file presence for src.rpm's (RhBug:833427)
Diffstat (limited to 'build')
-rw-r--r--build/files.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/files.c b/build/files.c
index 8affb9a80..b1420c7de 100644
--- a/build/files.c
+++ b/build/files.c
@@ -2002,6 +2002,9 @@ rpmRC processSourceFiles(rpmSpec spec, rpmBuildPkgFlags pkgFlags)
rpmlog(RPMLOG_ERR, _("Bad file: %s: %s\n"),
diskPath, strerror(errno));
fl.processingFailed = 1;
+ } else {
+ if (S_ISREG(flp->fl_mode) && flp->fl_size >= UINT32_MAX)
+ fl.largeFiles = 1;
}
if (fl.def.ar.ar_fmodestr) {