diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-01 14:00:52 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-01 14:00:52 +0000 |
commit | 72778b215155f8c7b02647c15d18ca6dc685607a (patch) | |
tree | b0f6c9947adec13498ee1878a3a5df55346d8e77 /Rpmdrake | |
parent | 550dcaf2b1b8272a95f85e7af4cfd126d1c29c8e (diff) | |
download | rpmdrake-72778b215155f8c7b02647c15d18ca6dc685607a.tar rpmdrake-72778b215155f8c7b02647c15d18ca6dc685607a.tar.gz rpmdrake-72778b215155f8c7b02647c15d18ca6dc685607a.tar.bz2 rpmdrake-72778b215155f8c7b02647c15d18ca6dc685607a.tar.xz rpmdrake-72778b215155f8c7b02647c15d18ca6dc685607a.zip |
(edit_callback) enable to edit mirrorlist media
Diffstat (limited to 'Rpmdrake')
-rw-r--r-- | Rpmdrake/edit_urpm_sources.pm | 4 |
1 files changed, 2 insertions, 2 deletions
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, |