From e0d8532e5fab8893dbd2be8339176e9789c06cb6 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 24 Nov 2004 16:49:25 +0000 Subject: In the Software Media Manager, the edition of media-specific proxies was broken. --- edit-urpm-sources.pl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'edit-urpm-sources.pl') diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl index 54c82ef2..7cfaf6fb 100755 --- a/edit-urpm-sources.pl +++ b/edit-urpm-sources.pl @@ -175,9 +175,11 @@ really want to replace it?"), yesno => 1) or return 0; $urpm->select_media($i{name}); $urpm->remove_selected_media; } - add_medium_and_check($urpm, - { probe_with => $probe, nolock => 1 }, - $i{name}, $make_url{$type}, $i{hdlist}, update => $type eq 'security'); + add_medium_and_check( + $urpm, + { probe_with => $probe, nolock => 1 }, + $i{name}, $make_url{$type}, $i{hdlist}, update => $type eq 'security', + ); return 1; } return 0; @@ -251,9 +253,11 @@ sub edit_callback { ) or return 0 ); standalone::explanations("Removing medium $name"); + my $saved_proxy = urpm::download::get_proxy($name); + undef $saved_proxy if !defined $saved_proxy->{http_proxy} && !defined $saved_proxy->{ftp_proxy}; $urpm->select_media($name); $urpm->remove_selected_media; - add_medium_and_check($urpm, { nolock => 1 }, $name, $url, $with_hdlist, update => $update); + add_medium_and_check($urpm, { nolock => 1, proxy => $saved_proxy }, $name, $url, $with_hdlist, update => $update); return $name; } return undef; -- cgit v1.2.1