diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-02-22 19:24:45 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-02-22 19:24:45 +0000 |
commit | 361797bee8a4f4f5adb95b732c763178076f2652 (patch) | |
tree | 4e82ec1082e8c86a9ef43a0f6eae0d2b6b2d3441 | |
parent | 0ea15dea337d57634fc311b0a97aeb7c129d556b (diff) | |
download | perl-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-- | NEWS | 1 | ||||
-rw-r--r-- | URPM.xs | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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 @@ -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(); |