summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-17 10:54:40 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-10-18 10:59:27 +0100
commit24139e27c65b19beeeac7a7521d862bc0ef24b9e (patch)
treed2c1c96050882311cc5cf52d982e8959d57757fc /bitbake/lib/bb/fetch2
parent76361c9b389d3461962a7f82e78888a6f5de80bd (diff)
downloadpoky-24139e27c65b19beeeac7a7521d862bc0ef24b9e.tar.gz
bitbake: fetch2: Avoid incorrect getVarFlag call
Calling getVarFlag with flag=None makes no sense, don't do it. Bitbake used to silently ignore this, it now warns so avoid the warning. (Bitbake rev: a68de8ace62eaba23856bfb301efbbe1824322aa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 9aea08b387..2b62b41618 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1097,7 +1097,9 @@ def trusted_network(d, url):
1097 return True 1097 return True
1098 1098
1099 pkgname = d.expand(d.getVar('PN', False)) 1099 pkgname = d.expand(d.getVar('PN', False))
1100 trusted_hosts = d.getVarFlag('BB_ALLOWED_NETWORKS', pkgname, False) 1100 trusted_hosts = None
1101 if pkgname:
1102 trusted_hosts = d.getVarFlag('BB_ALLOWED_NETWORKS', pkgname, False)
1101 1103
1102 if not trusted_hosts: 1104 if not trusted_hosts:
1103 trusted_hosts = d.getVar('BB_ALLOWED_NETWORKS') 1105 trusted_hosts = d.getVar('BB_ALLOWED_NETWORKS')