summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-09-07 11:06:48 +0000
committerOlivier Blin <oblin@mandriva.org>2005-09-07 11:06:48 +0000
commit46a83ab85f4d588ea7490c6e4449f98246eeb9f2 (patch)
tree49896207d94da3d5aa03bd6ba87094ae20f92526
parent45cb09fbbe30e5b699796333926d0fe4c91c5266 (diff)
downloaddrakx-46a83ab85f4d588ea7490c6e4449f98246eeb9f2.tar
drakx-46a83ab85f4d588ea7490c6e4449f98246eeb9f2.tar.gz
drakx-46a83ab85f4d588ea7490c6e4449f98246eeb9f2.tar.bz2
drakx-46a83ab85f4d588ea7490c6e4449f98246eeb9f2.tar.xz
drakx-46a83ab85f4d588ea7490c6e4449f98246eeb9f2.zip
mirror list support for http method
-rw-r--r--mdk-stage1/network.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mdk-stage1/network.c b/mdk-stage1/network.c
index cbc90126b..2b4ce30fd 100644
--- a/mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -1161,6 +1161,16 @@ enum return_type http_prepare(void)
int fd, size;
int use_http_proxy;
+ if (!IS_AUTOMATIC) {
+ if (answers == NULL)
+ answers = (char **) malloc(sizeof(questions));
+
+ results = choose_mirror_from_list(http_proxy_host, http_proxy_port, "http", &answers[0], &answers[1]);
+
+ if (results == RETURN_BACK)
+ return ftp_prepare();
+ }
+
results = ask_from_entries_auto("Please enter the name or IP address of the HTTP server, "
"and the directory containing the " DISTRIB_NAME " Distribution.",
questions, &answers, 40, questions_auto, NULL);