From 5c4c93817a7e059c87253f6e8a241e3d8c71fdcd Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 2 Jul 2008 17:44:06 +0000 Subject: - urpme: o indent the list of packages to be removed --- urpme | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'urpme') diff --git a/urpme b/urpme index 6d6cee55..b0bd9ee6 100644 --- a/urpme +++ b/urpme @@ -125,7 +125,7 @@ my $msg = "To satisfy dependencies, the following %d packages will be removed", scalar(@toremove), scalar(@toremove)) . sprintf(" (%s)", formatXiB(-$urpm->selected_size($state))) . ":\n" - . urpm::select::translate_why_removed($urpm, $state, @toremove) . "\n"; + . add_leading_spaces(urpm::select::translate_why_removed($urpm, $state, @toremove)) . "\n"; if ($options{auto}) { $test and print STDOUT $msg; @@ -156,3 +156,9 @@ if (@errors) { #- Warning : the following message is parsed in urpm::parallel_* $urpm->{fatal}(2, N("Removal failed") . ":\n" . join("\n", map { "\t$_" } @errors)); } + +sub add_leading_spaces { + my ($s) = @_; + $s =~ s/^/ /gm; + $s; +} -- cgit v1.2.1