Commit 59c1c4a9 authored by tcely's avatar tcely Committed by Natanael Copa
Browse files

abuild-fetch: when http:// was used, ignore https:// problems

parent 7bd32679
......@@ -135,7 +135,8 @@ int fetch(char *url, const char *destdir)
if (access(outfile, F_OK) == 0)
goto fetch_done;
if (insecure) {
/* enable insecure mode when http. This may be useful when it redirects to https */
if (insecure || strstr(url, "http://") == url) {
add_opt(&curlcmd, "--insecure");
add_opt(&wgetcmd, "--no-check-certificate");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment