From b64ea0c14bc81335b2a654d8adcbbd1dffaca804 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 23 Aug 2007 13:43:19 +0000 Subject: - debug message when scheduling a pkg removal - don't translate debug message --- urpm/install.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/urpm/install.pm b/urpm/install.pm index f85dbde0..ef06919a 100644 --- a/urpm/install.pm +++ b/urpm/install.pm @@ -150,7 +150,11 @@ sub install { my @produced_deltas; foreach (@$remove) { - $trans->remove($_) or $urpm->{error}("unable to remove package " . $_); + if ($trans->remove($_)) { + $urpm->{debug} and $urpm->{debug}('trans: scheduling removal of ' . $urpm->{depslist}[$_]->fullname); + } else { + $urpm->{error}("unable to remove package " . $_); + } } foreach my $mode ($install, $upgrade) { foreach (keys %$mode) { @@ -168,7 +172,7 @@ sub install { $options{excludepath} ? (excludepath => [ split /,/, $options{excludepath} ]) : () )) { $urpm->{debug} and $urpm->{debug}( - N("trans: scheduling package %s %s (id=%d, file=%s)", + sprintf('trans: scheduling %s of %s (id=%d, file=%s)', $update ? 'update' : 'install', scalar($pkg->fullname), $_, $mode->{$_})); } else { -- cgit v1.2.1