[bitbake-devel] [PATCH] tinfoil.py: validate argument in parse_recipe_file

Juro Bystricky juro.bystricky at intel.com
Wed Apr 5 21:33:11 UTC 2017


Check for an empty file name to avoid an exception.

[YOCTO#11210]

Signed-off-by: Juro Bystricky <juro.bystricky at intel.com>
---
 bitbake/lib/bb/tinfoil.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bitbake/lib/bb/tinfoil.py b/bitbake/lib/bb/tinfoil.py
index 928333a..620f409 100644
--- a/bitbake/lib/bb/tinfoil.py
+++ b/bitbake/lib/bb/tinfoil.py
@@ -399,6 +399,8 @@ class Tinfoil:
                          specify config_data then you cannot use a virtual
                          specification for fn.
         """
+        if not fn:
+            return None
         if appends and appendlist == []:
             appends = False
         if config_data:
-- 
2.7.4




More information about the bitbake-devel mailing list