From 72778b215155f8c7b02647c15d18ca6dc685607a Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 1 Oct 2008 14:00:52 +0000 Subject: (edit_callback) enable to edit mirrorlist media --- Rpmdrake/edit_urpm_sources.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Rpmdrake') diff --git a/Rpmdrake/edit_urpm_sources.pm b/Rpmdrake/edit_urpm_sources.pm index 6e382bf5..2071e13d 100644 --- a/Rpmdrake/edit_urpm_sources.pm +++ b/Rpmdrake/edit_urpm_sources.pm @@ -473,7 +473,7 @@ sub edit_callback() { 0, gtknew('Title2', label => N("Editing medium \"%s\":", $medium->{name})), 0, create_packtable( {}, - [ gtknew('Label_Left', text => N("URL:")), $url_entry = gtkentry($verbatim_medium->{url}) ], + [ gtknew('Label_Left', text => N("URL:")), $url_entry = gtkentry($verbatim_medium->{url} || $verbatim_medium->{mirrorlist}) ], [ gtknew('Label_Left', text => N("Downloader:")), my $download_combo = Gtk2::ComboBox->new_with_strings([ urpm::download::available_ftp_http_downloaders() ], $verbatim_medium->{downloader} || '') ], @@ -517,7 +517,7 @@ sub edit_callback() { urpm::media::select_media($urpm, $name); if (my ($media) = grep { $_->{name} eq $name } @{$urpm->{media}}) { put_in_hash($media, { - url => $url, + ($verbatim_medium->{mirrorlist} ? 'mirrorlist' : 'url') => $url, name => $name, update => $update, proxy => $saved_proxy, -- cgit v1.2.1