aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/rpmnew.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2013-04-22 21:43:50 +0000
committerThierry Vignaud <tv@mageia.org>2013-04-22 21:43:50 +0000
commit33db0379ffb8cf93e2fa96eda8913ea493d0dca4 (patch)
tree22fc7973eadbb54ded575d4af249324faba2ba94 /Rpmdrake/rpmnew.pm
parentf932caa45cf4fbcf8903ad4f6f5ba727a435777f (diff)
downloadrpmdrake-33db0379ffb8cf93e2fa96eda8913ea493d0dca4.tar
rpmdrake-33db0379ffb8cf93e2fa96eda8913ea493d0dca4.tar.gz
rpmdrake-33db0379ffb8cf93e2fa96eda8913ea493d0dca4.tar.bz2
rpmdrake-33db0379ffb8cf93e2fa96eda8913ea493d0dca4.tar.xz
rpmdrake-33db0379ffb8cf93e2fa96eda8913ea493d0dca4.zip
make it slighly faster: do not perform useless I/O
Diffstat (limited to 'Rpmdrake/rpmnew.pm')
-rw-r--r--Rpmdrake/rpmnew.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/Rpmdrake/rpmnew.pm b/Rpmdrake/rpmnew.pm
index 9bf40891..70880a10 100644
--- a/Rpmdrake/rpmnew.pm
+++ b/Rpmdrake/rpmnew.pm
@@ -155,7 +155,6 @@ sub inspect {
sub dialog_rpmnew {
my ($msg, %p2r) = @_;
- @{$p2r{$_}} = grep { !$ignores_rpmnew{$_} } @{$p2r{$_}} foreach keys %p2r;
my $sum_rpmnew = sum(map { int @{$p2r{$_}} } keys %p2r);
$sum_rpmnew == 0 and return 1;
interactive_packtable(
@@ -197,7 +196,7 @@ sub do_merge_if_needed() {
# costly:
open_rpm_db()->traverse(sub {
my $n = my_fullname($_[0]);
- $pkg2rpmnew{$n} = [ grep { (-r "$_.rpmnew" || -r "$_.rpmsave") } map { chomp_($_) } $_[0]->conf_files ];
+ $pkg2rpmnew{$n} = [ grep { !$ignores_rpmnew{$_} && (-r "$_.rpmnew" || -r "$_.rpmsave") } map { chomp_($_) } $_[0]->conf_files ];
});
print "done.\n";
undef $wait;