Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH 1/7] fetch2: Avoid incorrect getVarFlag call
@ 2018-10-18  9:22 Richard Purdie
  2018-10-18  9:22 ` [PATCH 2/7] data_smart: Micro optimise _remove handling Richard Purdie
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Richard Purdie @ 2018-10-18  9:22 UTC (permalink / raw)
  To: bitbake-devel

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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 lib/bb/fetch2/__init__.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index 9aea08b387..2b62b41618 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -1097,7 +1097,9 @@ def trusted_network(d, url):
         return True
 
     pkgname = d.expand(d.getVar('PN', False))
-    trusted_hosts = d.getVarFlag('BB_ALLOWED_NETWORKS', pkgname, False)
+    trusted_hosts = None
+    if pkgname:
+        trusted_hosts = d.getVarFlag('BB_ALLOWED_NETWORKS', pkgname, False)
 
     if not trusted_hosts:
         trusted_hosts = d.getVar('BB_ALLOWED_NETWORKS')
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-10-19  9:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-18  9:22 [PATCH 1/7] fetch2: Avoid incorrect getVarFlag call Richard Purdie
2018-10-18  9:22 ` [PATCH 2/7] data_smart: Micro optimise _remove handling Richard Purdie
2018-10-19  8:57   ` Martin Jansa
2018-10-19  9:55     ` richard.purdie
2018-10-18  9:22 ` [PATCH 3/7] data_smart: Fix expand_cache and _remove operator interaction issues Richard Purdie
2018-10-18  9:22 ` [PATCH 4/7] data/data_smart: Allow getVarFlag to return the variable parser object Richard Purdie
2018-10-18  9:22 ` [PATCH 5/7] bitbake: data: Ensure task checksums account for remove data Richard Purdie
2018-10-18  9:22 ` [PATCH 6/7] data/siggen: Extract task hash generation code into a function Richard Purdie
2018-10-18  9:22 ` [PATCH 7/7] test/data: Add new tests for task checksum changing/not changing Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox