summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-11-16 20:11:37 +0000
committerThierry Vignaud <tv@mageia.org>2012-11-16 20:11:37 +0000
commit3a1c459f23b0b1f7e353d80602d1b189e61ef8e2 (patch)
treedab7df0343f6f7af343c7ec01bb700172bad9d89 /urpm
parent37e3b7138b43af4ee1b987617b5c63cca7e70e35 (diff)
downloadurpmi-3a1c459f23b0b1f7e353d80602d1b189e61ef8e2.tar
urpmi-3a1c459f23b0b1f7e353d80602d1b189e61ef8e2.tar.gz
urpmi-3a1c459f23b0b1f7e353d80602d1b189e61ef8e2.tar.bz2
urpmi-3a1c459f23b0b1f7e353d80602d1b189e61ef8e2.tar.xz
urpmi-3a1c459f23b0b1f7e353d80602d1b189e61ef8e2.zip
(install) simplify
Diffstat (limited to 'urpm')
-rw-r--r--urpm/install.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/urpm/install.pm b/urpm/install.pm
index 8a568ffa..283fc877 100644
--- a/urpm/install.pm
+++ b/urpm/install.pm
@@ -312,9 +312,10 @@ sub install {
my $trans = $db->create_transaction;
if ($trans) {
- sys_log("transaction on %s (remove=%d, install=%d, upgrade=%d)", $urpm->{root} || '/', scalar(@{$remove || []}), scalar(values %$install), scalar(values %$upgrade));
+ my ($rm_count, $inst_count, $up_count) = (scalar(@{$remove || []}), scalar(values %$install), scalar(values %$upgrade));
+ sys_log("transaction on %s (remove=%d, install=%d, upgrade=%d)", $urpm->{root} || '/', $rm_count, $inst_count, $up_count);
$urpm->{log}(N("created transaction for installing on %s (remove=%d, install=%d, upgrade=%d)", $urpm->{root} || '/',
- scalar(@{$remove || []}), scalar(values %$install), scalar(values %$upgrade)));
+ $rm_count, $inst_count, $up_count));
} else {
return N("unable to create transaction");
}