diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-08-10 09:44:07 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-08-10 09:44:07 +0000 |
commit | f2eefb0f5f62e4832fa2b3d65e80fb6663d01f73 (patch) | |
tree | a7955262afb546eb1eb4aca994083e1b5556d6f0 | |
parent | 94363e32a4f7b47cc43460ceefe53dd5be9a92ce (diff) | |
download | urpmi-f2eefb0f5f62e4832fa2b3d65e80fb6663d01f73.tar urpmi-f2eefb0f5f62e4832fa2b3d65e80fb6663d01f73.tar.gz urpmi-f2eefb0f5f62e4832fa2b3d65e80fb6663d01f73.tar.bz2 urpmi-f2eefb0f5f62e4832fa2b3d65e80fb6663d01f73.tar.xz urpmi-f2eefb0f5f62e4832fa2b3d65e80fb6663d01f73.zip |
improve message notifying about orphans
patch from François, fixes bug #42484
-rw-r--r-- | urpm/orphans.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm index 2ca98287..67268fce 100644 --- a/urpm/orphans.pm +++ b/urpm/orphans.pm @@ -359,11 +359,13 @@ sub get_now_orphans_msg { my $orphans = get_orphans($urpm); my @orphans = map { scalar $_->fullname } @$orphans or return ''; - P("The following package is now orphaned, if you wish to remove it, you can use \"urpme --auto-orphans\".", - "The following packages are now orphaned, if you wish to remove them, you can use \"urpme --auto-orphans\".", scalar(@orphans)) - . "\n" . add_leading_spaces(join("\n", sort @orphans) . "\n"); + P("The following package:\n" . add_leading_spaces(join("\n", sort @orphans) . "\n") . + "is now orphaned, if you wish to remove it, you can use \"urpme --auto-orphans\"", + "The following packages:\n" . add_leading_spaces(join("\n", sort @orphans) . "\n") . + "are now orphaned, if you wish to remove them, you can use \"urpme --auto-orphans\"",scalar(@orphans)); } + #- side-effects: none sub add_leading_spaces { my ($s) = @_; |