summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2011-09-17 10:32:11 +0000
committerThierry Vignaud <tv@mageia.org>2011-09-17 10:32:11 +0000
commitc08fce05bcaf76c4c295c83628627a9497e40b7b (patch)
treee69b6aa932fefafdb808068be5ea4fbd5d8e388e
parent26aa4a913080d42300efc8ae7d9fdc31ba32f060 (diff)
downloadurpmi-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)
-rw-r--r--NEWS2
-rw-r--r--urpm/orphans.pm13
2 files changed, 15 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 8c693444..bf655665 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- add infrastructure for rpmdrake (#920)
+
Version 6.40 - 07 May 2010
- compress sources with xz instead of bzip2
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) = @_;