[oe-commits] [bitbake] 01/05: fetch2: BB_ALLOWED_NETWORKS should not care about port numbers
git at git.openembedded.org
git at git.openembedded.org
Sat Apr 2 16:16:27 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit ff603df23037e10fb2cfdf150429cba3f65072cd
Author: Olof Johansson <olof.johansson at axis.com>
AuthorDate: Fri Apr 1 17:01:47 2016 +0200
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 at axis.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/fetch2/__init__.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index dc074d5..1fa6702 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(" "):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list