From 5dbaf97b4b6151ba1f63649bbdd74380ca2e2f57 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 24 Aug 2012 11:07:58 +0000 Subject: (do_merge_if_needed) only look at config files, no need to look at the whole file list --- NEWS | 1 + Rpmdrake/rpmnew.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 6ca51ebb..65cf3cba 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,5 @@ - display package basenames when signature checking fails +- makes --merge-all-rpmnew option slight faster Version 5.34 - 13 May 2012, Pascal Terjan diff --git a/Rpmdrake/rpmnew.pm b/Rpmdrake/rpmnew.pm index f3cf5ba5..4fd4a4fe 100644 --- a/Rpmdrake/rpmnew.pm +++ b/Rpmdrake/rpmnew.pm @@ -193,7 +193,7 @@ sub do_merge_if_needed() { # costly: open_rpm_db()->traverse(sub { my $n = my_fullname($_[0]); - $pkg2rpmnew{$n} = [ grep { m|^/etc| && (-r "$_.rpmnew" || -r "$_.rpmsave") } map { chomp_($_) } $_[0]->files ]; + $pkg2rpmnew{$n} = [ grep { m|^/etc| && (-r "$_.rpmnew" || -r "$_.rpmsave") } map { chomp_($_) } $_[0]->conf_files ]; }); print "done.\n"; undef $wait; -- cgit v1.2.1