aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-22 19:23:47 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-22 19:23:47 +0000
commit6570e369eccf19468994e57ddbe2951162ecf74e (patch)
tree93ff385ce1867f917ccef6897ac3a055f7774698
parent860d1b69057d2968de6d16703223a3194619137c (diff)
downloadperl-URPM-6570e369eccf19468994e57ddbe2951162ecf74e.tar
perl-URPM-6570e369eccf19468994e57ddbe2951162ecf74e.tar.gz
perl-URPM-6570e369eccf19468994e57ddbe2951162ecf74e.tar.bz2
perl-URPM-6570e369eccf19468994e57ddbe2951162ecf74e.tar.xz
perl-URPM-6570e369eccf19468994e57ddbe2951162ecf74e.zip
(update_header) get real file size from actual package file
(thus enabling to put real package file sizes in synthesis)
-rw-r--r--NEWS1
-rw-r--r--URPM.xs1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index bcedec6..17e17a6 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- do not add FILENAME_TAG to hdlist anymore (unused since mdv2008)
- fix for a rare crash (mga#4425)
+- put real package file sizes in synthesis
Version 3.38.8 - 07 February 2012
diff --git a/URPM.xs b/URPM.xs
index f44bfbb..78288d6 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -1178,6 +1178,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();