From 80b94ed2ea867f9a533002be1301caae7add89d7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 21 Feb 2008 14:26:56 +0000 Subject: (remove_callback) display better formatted list when confirming removing media --- Rpmdrake/edit_urpm_sources.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index a45cf929..788b3804 100644 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -28,6 +28,7 @@ use lib qw(/usr/lib/libDrakX); use common; use rpmdrake; use Rpmdrake::open_db; +use Rpmdrake::formatting; use URPM::Signature; use MDK::Common::Math qw(max); use urpm::media; @@ -409,7 +410,7 @@ sub remove_callback() { @rows == 1 ? N("Are you sure you want to remove source \"%s\"?", to_utf8($urpm->{media}[$rows[0]]{name})) : N("Are you sure you want to remove the following sources ?") . "\n\n\n" . - join("\n\n", sort map { to_utf8($urpm->{media}[$_]{name}) } @rows), + format_list(map { to_utf8($urpm->{media}[$_]{name}) . "\n" } @rows), yesno => 1, transient => $::main_window, ) or return; -- cgit v1.2.1