aboutsummaryrefslogtreecommitdiffstats
path: root/Rpmdrake/edit_urpm_sources.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-21 14:26:56 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-21 14:26:56 +0000
commit80b94ed2ea867f9a533002be1301caae7add89d7 (patch)
treed817af40e47bf13f8242c661d457c3061cc5d0b3 /Rpmdrake/edit_urpm_sources.pm
parent96f5322819c0ca5d5405a89315af19bca0649f61 (diff)
downloadrpmdrake-80b94ed2ea867f9a533002be1301caae7add89d7.tar
rpmdrake-80b94ed2ea867f9a533002be1301caae7add89d7.tar.gz
rpmdrake-80b94ed2ea867f9a533002be1301caae7add89d7.tar.bz2
rpmdrake-80b94ed2ea867f9a533002be1301caae7add89d7.tar.xz
rpmdrake-80b94ed2ea867f9a533002be1301caae7add89d7.zip
(remove_callback) display better formatted list when confirming
removing media
Diffstat (limited to 'Rpmdrake/edit_urpm_sources.pm')
-rw-r--r--Rpmdrake/edit_urpm_sources.pm3
1 files changed, 2 insertions, 1 deletions
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;