aboutsummaryrefslogtreecommitdiffstats
path: root/URPM.xs
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-22 19:24:45 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-22 19:24:45 +0000
commit361797bee8a4f4f5adb95b732c763178076f2652 (patch)
tree4e82ec1082e8c86a9ef43a0f6eae0d2b6b2d3441 /URPM.xs
parent0ea15dea337d57634fc311b0a97aeb7c129d556b (diff)
downloadperl-URPM-361797bee8a4f4f5adb95b732c763178076f2652.tar
perl-URPM-361797bee8a4f4f5adb95b732c763178076f2652.tar.gz
perl-URPM-361797bee8a4f4f5adb95b732c763178076f2652.tar.bz2
perl-URPM-361797bee8a4f4f5adb95b732c763178076f2652.tar.xz
perl-URPM-361797bee8a4f4f5adb95b732c763178076f2652.zip
(update_header) get real file size from actual package file
(thus enabling to put real package file sizes in synthesis) (backported from trunk)
Diffstat (limited to 'URPM.xs')
-rw-r--r--URPM.xs1
1 files changed, 1 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 9cf1389..fa03071 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1183,6 +1183,7 @@ update_header(char *filename, URPM__Package pkg, __attribute__((unused)) int kee
FD_t fd = fdDup(d);
Header header;
rpmts ts;
+ pkg->filesize = fdSize(fd);
close(d);
ts = rpmtsCreate();