diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-09 11:47:27 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2006-02-09 11:47:27 +0000 |
commit | 71354b7d20740ae77880100ff5d785ccc2a465f4 (patch) | |
tree | a09861259d904cf03cd6b35cd3403e5d38eee396 | |
parent | a158b97ff3889c7ff1253f447c424fb052ae419a (diff) | |
download | urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.tar urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.tar.gz urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.tar.bz2 urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.tar.xz urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.zip |
Log transaction creation
-rw-r--r-- | urpm.pm | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |