From 6570e369eccf19468994e57ddbe2951162ecf74e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 22 Feb 2012 19:23:47 +0000 Subject: (update_header) get real file size from actual package file (thus enabling to put real package file sizes in synthesis) --- NEWS | 1 + URPM.xs | 1 + 2 files changed, 2 insertions(+) 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(); -- cgit v1.2.1