From 16fff5c9b9274ed79a5572d9d5b5d126003dc803 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 6 Mar 2007 15:02:32 +0000 Subject: (remove_callback) fix removing several medium (#29203) --- Rpmdrake/edit_urpm_sources.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Rpmdrake') diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index 339acbb7..8e964ed6 100755 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -367,7 +367,7 @@ sub remove_callback() { ) or return; my $wait = wait_msg(N("Please wait, removing medium...")); - foreach my $row (@rows) { + foreach my $row (reverse(@rows)) { $something_changed = 1; urpm::media::remove_media($urpm, [ $urpm->{media}[$row] ]); urpm::media::write_urpmi_cfg($urpm); -- cgit v1.2.1