diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-07-02 14:05:58 +0200 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-07-02 14:05:58 +0200 |
commit | 2ece0775b3161bc995f632b7057a244a53a30f39 (patch) | |
tree | c0a466e1fe9572c00e7713ee7b99f722093d5429 /lib/AdminPanel | |
parent | 25fab75015b8ad18acb27dcbf43122ca100ea3df (diff) | |
download | colin-keep-2ece0775b3161bc995f632b7057a244a53a30f39.tar colin-keep-2ece0775b3161bc995f632b7057a244a53a30f39.tar.gz colin-keep-2ece0775b3161bc995f632b7057a244a53a30f39.tar.bz2 colin-keep-2ece0775b3161bc995f632b7057a244a53a30f39.tar.xz colin-keep-2ece0775b3161bc995f632b7057a244a53a30f39.zip |
Aligned
Diffstat (limited to 'lib/AdminPanel')
-rw-r--r-- | lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm index 1756e0b..56c9b78 100644 --- a/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm +++ b/lib/AdminPanel/Rpmdragora/edit_urpm_sources.pm @@ -436,26 +436,26 @@ sub remove_callback { $DB::single = 1; for (my $it = 0; $it < $selection->size(); $it++) { my $item = $selection->get($it); - push @rows, $item->label(); + push @rows, $item->label(); } @rows == 0 and return; interactive_msg( - N("Source Removal"), - @rows == 1 ? - N("Are you sure you want to remove source \"%s\"?", $urpm->{media}[$rows[0]]{name}) : + N("Source Removal"), + @rows == 1 ? + N("Are you sure you want to remove source \"%s\"?", $urpm->{media}[$rows[0]]{name}) : N("Are you sure you want to remove the following sources?") . "\n\n" . - format_list(map { $urpm->{media}[$_]{name} } @rows), - yesno => 1, scroll => 1, + format_list(map { $urpm->{media}[$_]{name} } @rows), + yesno => 1, scroll => 1, ) or return; - # TODO dialog waiting -# my $wait = wait_msg(N("Please wait, removing medium...")); + # TODO dialog waiting if needed + # my $wait = wait_msg(N("Please wait, removing medium...")); foreach my $row (reverse(@rows)) { - $something_changed = 1; - urpm::media::remove_media($urpm, [ $urpm->{media}[$row] ]); - urpm::media::write_urpmi_cfg($urpm); -# undef $wait -# remove_wait_msg($wait); + $something_changed = 1; + urpm::media::remove_media($urpm, [ $urpm->{media}[$row] ]); + urpm::media::write_urpmi_cfg($urpm); + # undef $wait + # remove_wait_msg($wait); } return 1; } |