diff options
Diffstat (limited to 'urpme')
-rw-r--r-- | urpme | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -122,15 +122,11 @@ if ($test && $auto) { #- Warning : the following message is parsed in urpm::parallel_* my $msg = N("Checking to remove the following packages"); print STDOUT "$msg:\n$list\n"; -} elsif (($parallel || @toremove > @l) && !$auto) { - my $sum = 0; - foreach (@toremove) { - $sum += $state->{rejected}{$_}{size}; - } +} elsif (($parallel || @toremove > @l) && !$auto || 1) { my $msg = P("To satisfy dependencies, the following package will be removed", "To satisfy dependencies, the following %d packages will be removed", - scalar(@toremove), scalar(@toremove)) . N(" (%d MB)", toMb($sum)); + scalar(@toremove), scalar(@toremove)) . sprintf(" (%s)", formatXiB(-$urpm->selected_size($state))); print STDOUT "$msg:\n$list\n"; message_input(P("Remove %d package?", "Remove %d packages?", scalar(@toremove), scalar(@toremove)) . N(" (y/N) "), $force && $yesexpr, boolean => 1) =~ /[$yesexpr]/ or exit 0; } |