summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorOlof Johansson <olof.johansson@axis.com>2016-04-01 17:01:47 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-03 15:53:44 +0100
commitcf6d12d1910572447686c95c7d0949ab47804852 (patch)
tree6270a50881da5bbee488c47159878b34599a3ec6 /bitbake/lib/bb/fetch2
parent158575c73860c293dae49a5c38d3211c567a83d1 (diff)
downloadpoky-cf6d12d1910572447686c95c7d0949ab47804852.tar.gz
bitbake: fetch2: BB_ALLOWED_NETWORKS should not care about port numbers
Bitbake would fail to classify the following URL as belonging to a allowed network, because of the port number in the url. BB_ALLOWED_NETWORKS = "*.example.com" SRC_URI = "http://git.example.com:8080/foo.tar.gz" Since protocols aren't specified in the BB_ALLOWED_NETWORKS variable, it's reasonable to believe that this should work regardless of protocol being used. (Bitbake rev: ff603df23037e10fb2cfdf150429cba3f65072cd) Signed-off-by: Olof Johansson <olof.johansson@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index dc074d5340..1fa67020c4 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1044,6 +1044,7 @@ def trusted_network(d, url):
1044 if not network: 1044 if not network:
1045 return True 1045 return True
1046 1046
1047 network = network.split(':')[0]
1047 network = network.lower() 1048 network = network.lower()
1048 1049
1049 for host in trusted_hosts.split(" "): 1050 for host in trusted_hosts.split(" "):