diff options
-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') |