[bitbake-devel] [PATCH] cooker.py: fix bitbake -b

Scott Garman scott.a.garman at intel.com
Fri Jun 10 16:34:20 UTC 2011


This avoids a null reference when bitbake -b is invoked, fixing
the following error:

AttributeError: 'NoneType' object has no attribute 'bbfile_config_priorities'

Signed-off-by: Scott Garman <scott.a.garman at intel.com>
---
 lib/bb/cooker.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index c23e3d4..cc5d939 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -990,8 +990,9 @@ class BBCooker:
         files = (data.getVar( "BBFILES", self.configuration.data, 1 ) or "").split()
         data.setVar("BBFILES", " ".join(files), self.configuration.data)
 
-        # Sort files by priority
-        files.sort( key=lambda fileitem: self.calc_bbfile_priority(fileitem) )
+        if self.status:
+            # Sort files by priority
+            files.sort( key=lambda fileitem: self.calc_bbfile_priority(fileitem) )
 
         if not len(files):
             files = self.get_bbfiles()
-- 
1.7.1





More information about the bitbake-devel mailing list