diff options
author | Thierry Vignaud <tv@mageia.org> | 2012-02-27 20:42:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2012-02-27 20:42:23 +0000 |
commit | 737bebe5addf93473768e0ccc741bdafabe4bc0c (patch) | |
tree | ba424cc15ecac1c7a10685c5b49f1df847142cf3 | |
parent | 17a20d9fe33671ca6b1b5dfddf2cbdd152d9d471 (diff) | |
download | perl-URPM-737bebe5addf93473768e0ccc741bdafabe4bc0c.tar perl-URPM-737bebe5addf93473768e0ccc741bdafabe4bc0c.tar.gz perl-URPM-737bebe5addf93473768e0ccc741bdafabe4bc0c.tar.bz2 perl-URPM-737bebe5addf93473768e0ccc741bdafabe4bc0c.tar.xz perl-URPM-737bebe5addf93473768e0ccc741bdafabe4bc0c.zip |
(Pkg_set_filesize) enable to set filesize
this is needed in order to keep real package file sizes in synthesis
when keeping packages on refreshing metadata
previous fix only ensured we get real file size when adding a new
package to synthesis; but when refreshing synthesis, we were going
through poor get_filesize()'s guesses
-rw-r--r-- | URPM.xs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1853,6 +1853,13 @@ Pkg_size(pkg) OUTPUT: RETVAL +void +Pkg_set_filesize(pkg, filesize) + URPM::Package pkg + size_t filesize; + PPCODE: + pkg->filesize = filesize; + int Pkg_filesize(pkg) URPM::Package pkg |