Skip to contentSkip to conversation

parse: Don't try to expand __base_depends/__depends

PATCH New Richard Purdie 1 participant 1 message Nov 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 parse: Don't try to expand __base_depends/__depends

Trying to expand a variable which isn't a string doesn't make sense.

---
 bitbake/lib/bb/parse/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
bitbake/lib/bb/parse/__init__.py +2 -2
index 67ec71f..26ae7ea 100644
@@ -161,8 +161,8 @@ def vars_from_file(mypkg, d):
 def get_file_depends(d):
     '''Return the dependent files'''
     dep_files = []
-    depends = d.getVar('__base_depends', True) or []
-    depends = depends + (d.getVar('__depends', True) or [])
+    depends = d.getVar('__base_depends', False) or []
+    depends = depends + (d.getVar('__depends', False) or [])
     for (fn, _) in depends:
         dep_files.append(os.path.abspath(fn))
     return " ".join(dep_files)