Skip to content

Instantly share code, notes, and snippets.

@skahack
Last active August 29, 2015 14:12
Show Gist options
  • Select an option

  • Save skahack/da7c492a29267b6f393c to your computer and use it in GitHub Desktop.

Select an option

Save skahack/da7c492a29267b6f393c to your computer and use it in GitHub Desktop.
opam.patch
diff --git a/src/core/opamSystem.ml b/src/core/opamSystem.ml
index be23953..c5985a7 100644
--- a/src/core/opamSystem.ml
+++ b/src/core/opamSystem.ml
@@ -676,7 +676,7 @@ let download_command =
let curl command ~compress dir src =
let curl_args = [
"--write-out"; "%{http_code}\\n"; "--insecure";
- "--retry"; retry; "--retry-delay"; "2";
+ "--retry"; retry; "--retry-delay"; "2"; "-4";
] @ (if compress then ["--compressed"] else []) @ [
"-OL"; src
] in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment