aboutsummaryrefslogtreecommitdiffstats
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
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)
-rw-r--r--NEWS1
-rw-r--r--URPM.xs1
2 files changed, 2 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index dae271c..b0168eb 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@
- fix for a rare crash (mga#4425)
- fix slow matching of individual regexes for skipping dependencies by creating
a large regex to match them all at once (mdv#61389, Shlomi Fish)
+- put real package file sizes in synthesis
- really prefer packages from first media, thus fixing downloading noarch
packages from 32 bit repository (mga#1603)
- support kernel 3.x in kmod resolution
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();