From 71354b7d20740ae77880100ff5d785ccc2a465f4 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Thu, 9 Feb 2006 11:47:27 +0000 Subject: Log transaction creation --- urpm.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/urpm.pm b/urpm.pm index e1c4ecef..79044d2c 100644 --- a/urpm.pm +++ b/urpm.pm @@ -2958,6 +2958,7 @@ sub install { my $trans = $db->create_transaction($urpm->{root}); if ($trans) { + sys_log("transaction on %s (remove=%d, install=%d, upgrade=%d)", $urpm->{root} || '/', scalar(@{$remove || []}), scalar(values %$install), scalar(values %$upgrade)); $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))); } else { @@ -3022,7 +3023,7 @@ sub install { @l = $trans->run($urpm, %options); if (!$options{test} && $options{post_clean_cache}) { - #- examine the local cahe to delete packages which were part of this transaction + #- examine the local cache to delete packages which were part of this transaction foreach (keys %$install, keys %$upgrade) { my $pkg = $urpm->{depslist}[$_]; unlink "$urpm->{cachedir}/rpms/" . $pkg->filename; -- cgit v1.2.1