aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS3
-rwxr-xr-xgenhdlist29
2 files changed, 8 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 5fc6372..9399900 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- do not load file sizes from synthesis in non incremental mode (minor
+ performance optimisation)
+
Version 7.00 - 7 September 2014, by Thierry Vignaud
- synthesis format change:
diff --git a/genhdlist2 b/genhdlist2
index 65deac0..a5873f7 100755
--- a/genhdlist2
+++ b/genhdlist2
@@ -197,12 +197,13 @@ sub build {
map { $_ => open_xml_filter("$media_info_dir/$_.xml${xml_info_suffix}.tmp", $xml_info_filter) } @$xml_media_info
};
- # keep real filesizes from synthesis since hdlist no more have filesizes since 2008
- # else URPM will put a bogus estimation:
- my $sizes = get_filesize_from_synthesis($urpm, $rpms_todo, $synthesis);
-
if (-e $hdlist && !$b_no_incremental) {
print "filtering $hdlist into hdlist.cz.tmp\n" if $verbose >= 0;
+
+ # keep real filesizes from synthesis since hdlist no more have filesizes since 2008
+ # else URPM will put a bogus estimation:
+ my $sizes = get_filesize_from_synthesis($urpm, $rpms_todo, $synthesis);
+
filter_existing_hdlist($urpm, $rpms_todo, $hdlist, $out, $sizes);
}