aboutsummaryrefslogtreecommitdiffstats
path: root/edit-urpm-sources.pl
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-28 17:47:43 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-28 17:47:43 +0000
commit4c728702012878a53668638c538e30fdfa937979 (patch)
treea3af8a93f6e296a6932bc702b6716b665af92220 /edit-urpm-sources.pl
parent98465268b4a9cdabd6dcda1947a74fe3340bba53 (diff)
downloadrpmdrake-4c728702012878a53668638c538e30fdfa937979.tar
rpmdrake-4c728702012878a53668638c538e30fdfa937979.tar.gz
rpmdrake-4c728702012878a53668638c538e30fdfa937979.tar.bz2
rpmdrake-4c728702012878a53668638c538e30fdfa937979.tar.xz
rpmdrake-4c728702012878a53668638c538e30fdfa937979.zip
(edit_callback) prevent entering a non availlable downloader
Diffstat (limited to 'edit-urpm-sources.pl')
-rwxr-xr-xedit-urpm-sources.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/edit-urpm-sources.pl b/edit-urpm-sources.pl
index 40770de0..16bce966 100755
--- a/edit-urpm-sources.pl
+++ b/edit-urpm-sources.pl
@@ -415,7 +415,9 @@ sub edit_callback {
{},
[ gtknew('Label_Left', text => N("URL:")), $url_entry = gtkentry($verbatim_medium->{url}) ],
[ gtknew('Label_Left', text => N("Relative path to synthesis/hdlist:")), $hdlist_entry = gtkentry($verbatim_medium->{with_hdlist}) ],
- [ gtknew('Label_Left', text => N("Downloader:")), $downloader_entry = gtkentry($verbatim_medium->{downloader}) ],
+ [ gtknew('Label_Left', text => N("Downloader:")),
+ my $download_combo = Gtk2::ComboBox->new_with_strings([ urpm::download::available_ftp_http_downloaders() ],
+ $verbatim_medium->{downloader} || '') ],
),
0, Gtk2::HSeparator->new,
0, gtkpack(
@@ -440,6 +442,7 @@ sub edit_callback {
)
)
);
+ $downloader_entry = $download_combo->entry;
$w->{rwindow}->set_size_request(600, -1);
if ($w->main) {
my ($name, $update) = map { $medium->{$_} } qw(name update);