mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-04 05:31:46 +00:00
abuild-fetch: when http:// was used, ignore https:// problems
This commit is contained in:
parent
7bd32679b3
commit
59c1c4a97a
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user