This email list is read-only.  Emails sent to this list will be discarded
----------------------------------
 bitbake-dev/lib/bb/cooker.py |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

New commits:
commit 526d996a02cd788f025b3f79ff2935d21806f36f
Author: Rob Bradford <[EMAIL PROTECTED]>
Date:   Tue Oct 28 12:06:05 2008 +0000

    bitbake-dev: Use the default task if 'None' asked for
    
    Since the default task is not known/available until the configuration files
    are parsed we may return None when the UI requests getCmdLine. We can 
enforce
    the use of the default by querying it again after the configuration is
    parsed/cache updated.


Diff in this email is a maximum of 400 lines.
diff --git a/bitbake-dev/lib/bb/cooker.py b/bitbake-dev/lib/bb/cooker.py
index 6dde5de..ead76ca 100644
--- a/bitbake-dev/lib/bb/cooker.py
+++ b/bitbake-dev/lib/bb/cooker.py
@@ -305,6 +305,10 @@ class BBCooker:
         # Need files parsed
         self.updateCache()
 
+        # If we are told to do the None task then query the default task
+        if (task == None):
+            task = self.configuration.cmd
+
         pkgs_to_build = self.checkPackages(pkgs_to_build)
 
         localdata = data.createCopy(self.configuration.data)
@@ -610,6 +614,14 @@ class BBCooker:
         Build the file matching regexp buildfile
         """
 
+        # Parse the configuration here. We need to do it explicitly here since
+        # buildFile() doesn't use the cache
+        self.parseConfiguration()
+
+        # If we are told to do the None task then query the default task
+        if (task == None):
+            task = self.configuration.cmd
+
         fn = self.matchFile(buildfile)
         self.buildSetVars()
 
@@ -680,6 +692,10 @@ class BBCooker:
         # Need files parsed
         self.updateCache()
 
+        # If we are told to do the NULL task then query the default task
+        if (task == None):
+            task = self.configuration.cmd
+
         targets = self.checkPackages(targets)
 
         def buildTargetsIdle(server, rq, abort):
_______________________________________________
Commits mailing list
[email protected]
https://lists.moblin.org/mailman/listinfo/commits

Reply via email to