aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-02-27 20:42:23 +0000
committerThierry Vignaud <tv@mageia.org>2012-02-27 20:42:23 +0000
commit737bebe5addf93473768e0ccc741bdafabe4bc0c (patch)
treeba424cc15ecac1c7a10685c5b49f1df847142cf3
parent17a20d9fe33671ca6b1b5dfddf2cbdd152d9d471 (diff)
downloadperl-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.xs7
1 files changed, 7 insertions, 0 deletions
diff --git a/URPM.xs b/URPM.xs
index 16efd56..f9164e3 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -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