Merge "fuel-plugin-opendaylight: Prebuilt leveldbjni DEB"
[armband.git] / patches / fuel-plugin-opendaylight / 0003-FIXME-ODL-wget-no-check-certificate-for-cache.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Tue, 12 Jul 2016 14:26:22 +0200
3 Subject: [PATCH] FIXME: ODL wget: --no-check-certificate for cache.
4
5 ODL tarball is normally fetched from nexus.opendaylight.org domain,
6 which has a very limited bandwidth, taking up to 10-15mins for our
7 build server to download the ODL archive at each ISO build.
8 This adds up to 15-25% of each ISO build time spent on downloading
9 ODL archive.
10 Therefore, we chose to set up a local HTTPS cache of nexus repos,
11 (just for the sake of not hardcoding the URL in our Makefile),
12 and just disable certificate check for wget from local URL.
13
14 Allow using a HTTPS local cache, so we don't override the whole
15 URL of the ODL archive. Our local cache has HTTPS enabled, but the
16 certificate won't match the domain name.
17
18 FIXME: This patch is only needed if you have a local cache of
19 nexus.opendaylight.org!
20
21 Only use this option if you are otherwise convinced of the site's
22 authenticity, or if you really don't care about the validity of
23 its certificate.
24
25 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
26 ---
27  pre_build_hook | 2 +-
28  1 file changed, 1 insertion(+), 1 deletion(-)
29
30 diff --git a/pre_build_hook b/pre_build_hook
31 index a6d55e9..21e7a99 100755
32 --- a/pre_build_hook
33 +++ b/pre_build_hook
34 @@ -76,7 +76,7 @@ function cleanup {
35  }
36
37  function download {
38 -  wget "$1" -qO $2
39 +  wget --no-check-certificate "$1" -qO $2
40  }
41
42  function unpack {