diff options
author | Thierry Vignaud <tv@mageia.org> | 2011-09-17 10:32:11 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mageia.org> | 2011-09-17 10:32:11 +0000 |
commit | c08fce05bcaf76c4c295c83628627a9497e40b7b (patch) | |
tree | e69b6aa932fefafdb808068be5ea4fbd5d8e388e /urpm | |
parent | 26aa4a913080d42300efc8ae7d9fdc31ba32f060 (diff) | |
download | urpmi-c08fce05bcaf76c4c295c83628627a9497e40b7b.tar urpmi-c08fce05bcaf76c4c295c83628627a9497e40b7b.tar.gz urpmi-c08fce05bcaf76c4c295c83628627a9497e40b7b.tar.bz2 urpmi-c08fce05bcaf76c4c295c83628627a9497e40b7b.tar.xz urpmi-c08fce05bcaf76c4c295c83628627a9497e40b7b.zip |
(get_now_orphans_gui_msg) introduce it for rpmdrake (#920)
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/orphans.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/urpm/orphans.pm b/urpm/orphans.pm index 6109b967..2682f1aa 100644 --- a/urpm/orphans.pm +++ b/urpm/orphans.pm @@ -441,6 +441,19 @@ sub _get_now_orphans_raw_msg { (scalar(@orphans), add_leading_spaces(join("\n", sort @orphans))); } +sub get_now_orphans_gui_msg { + my ($urpm) = @_; + + my ($count, $list) = _get_now_orphans_raw_msg($urpm); + join("\n", + P("The following package:\n%s\nis now orphaned.", + "The following packages:\n%s\nare now orphaned.", $count, $list), + undef, + P("You may wish to remove it.", + "You may wish to remove them.", $count) + ); +} + sub get_now_orphans_msg { my ($urpm) = @_; |