summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-23 13:43:19 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-23 13:43:19 +0000
commitb64ea0c14bc81335b2a654d8adcbbd1dffaca804 (patch)
tree0137f81c645c3f556936bf046280eed7b0c7a318 /urpm
parent737e273780330f33ae4d9728639d256ba738bbe1 (diff)
downloadurpmi-b64ea0c14bc81335b2a654d8adcbbd1dffaca804.tar
urpmi-b64ea0c14bc81335b2a654d8adcbbd1dffaca804.tar.gz
urpmi-b64ea0c14bc81335b2a654d8adcbbd1dffaca804.tar.bz2
urpmi-b64ea0c14bc81335b2a654d8adcbbd1dffaca804.tar.xz
urpmi-b64ea0c14bc81335b2a654d8adcbbd1dffaca804.zip
- debug message when scheduling a pkg removal
- don't translate debug message
Diffstat (limited to 'urpm')
-rw-r--r--urpm/install.pm8
1 files 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 {