]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cooker.py: Pass the task to run to tryBuild directly, don't use self.configuration...
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 6 Dec 2008 12:03:51 +0000 (12:03 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Sat, 6 Dec 2008 12:03:51 +0000 (12:03 +0000)
lib/bb/cooker.py
lib/bb/runqueue.py

index b539fb28d2aa73f771e6c5211ad5693c2be94301..c67bdaef9a7bf8f5d16ca093c1c1dbb05480ab2c 100644 (file)
@@ -199,7 +199,7 @@ class BBCooker:
             bb.event.fire(bb.event.PkgFailed(item, the_data))
             raise
 
-    def tryBuild(self, fn):
+    def tryBuild(self, fn, task):
         """
         Build a provider and its dependencies. 
         build_depends is a list of previous build dependencies (not runtime)
@@ -213,7 +213,7 @@ class BBCooker:
         #if bb.build.stamp_is_current('do_%s' % self.configuration.cmd, the_data):
         #    return True
 
-        return self.tryBuildPackage(fn, item, self.configuration.cmd, the_data)
+        return self.tryBuildPackage(fn, item, task, the_data)
 
     def showVersions(self):
 
index 20af618d98f313bb4ae80e20408d055dae677465..01452d2f3300e19ef8ae862e02ca2359fc6379f7 100644 (file)
@@ -993,10 +993,9 @@ class RunQueue:
                     os.setpgid(0, 0)
                     newsi = os.open('/dev/null', os.O_RDWR)
                     os.dup2(newsi, sys.stdin.fileno())
-                    self.cooker.configuration.cmd = taskname[3:]
                     bb.data.setVar("__RUNQUEUE_DO_NOT_USE_EXTERNALLY", self, self.cooker.configuration.data)
                     try:
-                        self.cooker.tryBuild(fn)
+                        self.cooker.tryBuild(fn, taskname[3:])
                     except bb.build.EventException:
                         bb.msg.error(bb.msg.domain.Build, "Build of " + fn + " " + taskname + " failed")
                         sys.exit(1)