summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/orphans.pm13
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) = @_;