summaryrefslogtreecommitdiffstats
path: root/lib/bb/fetch2/__init__.py
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-02 17:14:10 +0100
commitff603df23037e10fb2cfdf150429cba3f65072cd (patch)
tree31c835fb8a0e06abd7a5fe79ed327aaa0ab605f7 /lib/bb/fetch2/__init__.py
parenta6add0e95d3d1e9a6a9fcabd73543bc5c278915f (diff)
downloadbitbake-contrib-ff603df23037e10fb2cfdf150429cba3f65072cd.tar.gz
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. Signed-off-by: Olof Johansson <olof.johansson@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/fetch2/__init__.py')
-rw-r--r--lib/bb/fetch2/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index dc074d534..1fa67020c 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -1044,6 +1044,7 @@ def trusted_network(d, url):
if not network:
return True
+ network = network.split(':')[0]
network = network.lower()
for host in trusted_hosts.split(" "):