From 59c1c4a97a57c224ba8df167b05d8951e3f81bc2 Mon Sep 17 00:00:00 2001 From: tcely Date: Wed, 8 May 2019 14:07:11 -0400 Subject: abuild-fetch: when http:// was used, ignore https:// problems --- abuild-fetch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/abuild-fetch.c b/abuild-fetch.c index 1b9e4d0..cff8fe6 100644 --- a/abuild-fetch.c +++ b/abuild-fetch.c @@ -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"); } -- cgit v1.2.3