From c08fce05bcaf76c4c295c83628627a9497e40b7b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sat, 17 Sep 2011 10:32:11 +0000 Subject: (get_now_orphans_gui_msg) introduce it for rpmdrake (#920) --- urpm/orphans.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'urpm/orphans.pm') 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) = @_; -- cgit v1.2.1