summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-09 11:47:27 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2006-02-09 11:47:27 +0000
commit71354b7d20740ae77880100ff5d785ccc2a465f4 (patch)
treea09861259d904cf03cd6b35cd3403e5d38eee396 /urpm.pm
parenta158b97ff3889c7ff1253f447c424fb052ae419a (diff)
downloadurpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.tar
urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.tar.gz
urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.tar.bz2
urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.tar.xz
urpmi-71354b7d20740ae77880100ff5d785ccc2a465f4.zip
Log transaction creation
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm3
1 files changed, 2 insertions, 1 deletions
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;