diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-17 10:54:40 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-10-18 10:59:27 +0100 |
| commit | 24139e27c65b19beeeac7a7521d862bc0ef24b9e (patch) | |
| tree | d2c1c96050882311cc5cf52d982e8959d57757fc /bitbake/lib/bb | |
| parent | 76361c9b389d3461962a7f82e78888a6f5de80bd (diff) | |
| download | poky-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')
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 |
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') |
