summaryrefslogtreecommitdiffstats
path: root/urpme
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2003-08-06 17:48:14 +0000
committerFrancois Pons <fpons@mandriva.com>2003-08-06 17:48:14 +0000
commit3e2545fd4b58874005c9f59a020f0225bb022a52 (patch)
treed37e020fb7554fdc2eb45d554ab581982c7cee93 /urpme
parentc538bae4febfb96cbfceee464836a456b5f93172 (diff)
downloadurpmi-3e2545fd4b58874005c9f59a020f0225bb022a52.tar
urpmi-3e2545fd4b58874005c9f59a020f0225bb022a52.tar.gz
urpmi-3e2545fd4b58874005c9f59a020f0225bb022a52.tar.bz2
urpmi-3e2545fd4b58874005c9f59a020f0225bb022a52.tar.xz
urpmi-3e2545fd4b58874005c9f59a020f0225bb022a52.zip
4.4-19mdk
Diffstat (limited to 'urpme')
-rw-r--r--urpme7
1 files changed, 4 insertions, 3 deletions
diff --git a/urpme b/urpme
index 59bea458..5abb198d 100644
--- a/urpme
+++ b/urpme
@@ -97,20 +97,21 @@ my @toremove = $urpm->find_packages_to_remove($state, \@l,
} 0 },
) or $urpm->{fatal}(0, N("Nothing to remove"));
+my $list = join "\n", $urpm->translate_why_removed($state, sort @to_remove);
if ($test && $auto) {
my $msg = N("Checking to remove the following packages");
- print STDOUT "$msg:\n" . join("\n", sort { $a cmp $b } @toremove) . "\n";
+ print STDOUT "$msg:\n$list\n";
} elsif (($parallel || @toremove > @l) && !$auto) {
my $sum = 0;
foreach (@toremove) {
$sum += $state->{rejected}{$_}{size};
}
my $msg = N("To satisfy dependencies, the following packages will be removed (%d MB)", toMb($sum));
- print STDOUT "$msg:\n" . join("\n", sort { $a cmp $b } @toremove) . "\n$askok" . N(" (Y/n) ");
+ print STDOUT "$msg:\n$list\n$askok" . N(" (Y/n) ");
<STDIN> =~ /[$noexpr]/ and exit 0;
}
-print STDOUT "\n".N("removing %s", join(' ', @toremove))."\n";
+print STDOUT "\n".N("removing %s", join(' ', sort @toremove))."\n";
@l = $parallel ?
$urpm->parallel_remove(\@toremove, test => $test, force => $force, translate_message => 1) :
$urpm->install(\@toremove, {}, {}, test => $test, force => $force, translate_message => 1);