summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-02 17:44:06 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-02 17:44:06 +0000
commit5c4c93817a7e059c87253f6e8a241e3d8c71fdcd (patch)
tree2e362a6b0005003892f9b61842df579b28bd6e92
parentf559454ba384c3905e1d40cff739ad7bd70526e6 (diff)
downloadurpmi-5c4c93817a7e059c87253f6e8a241e3d8c71fdcd.tar
urpmi-5c4c93817a7e059c87253f6e8a241e3d8c71fdcd.tar.gz
urpmi-5c4c93817a7e059c87253f6e8a241e3d8c71fdcd.tar.bz2
urpmi-5c4c93817a7e059c87253f6e8a241e3d8c71fdcd.tar.xz
urpmi-5c4c93817a7e059c87253f6e8a241e3d8c71fdcd.zip
- urpme:
o indent the list of packages to be removed
-rw-r--r--NEWS2
-rw-r--r--urpme8
2 files changed, 9 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 55c06c87..96fbbd09 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,8 @@
o tell bash-completion urpmi handles file names (#41699) (guillomovitch)
- urpmi.addmedia, urpmi.update:
o fix --no-md5sum (regression introduced in 5.20) (#41237)
+- urpme:
+ o indent the packages to be removed
Version 5.20 - 2 June 2008, by Pascal "Pixel" Rigaux
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;
+}