diff options
Diffstat (limited to 'urpm/install.pm')
-rw-r--r-- | urpm/install.pm | 5 |
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"); } |