summaryrefslogtreecommitdiffstats
path: root/lib/bb/shell.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-12-06 12:57:17 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-12-06 12:57:17 +0000
commitf7d2413939ba15b024a853c960c27d22a4a3ac4e (patch)
tree8a4e489ea2b2329c3208e04e0bdeccb0d47a4e4e /lib/bb/shell.py
parenta59037d9b5baecfdf389a6d57712ea709d0b1ff6 (diff)
downloadbitbake-f7d2413939ba15b024a853c960c27d22a4a3ac4e.tar.gz
Pass around the tasks to execute rather than using magic variables. Also use the empty_environment() function to clear the environment
Diffstat (limited to 'lib/bb/shell.py')
-rw-r--r--lib/bb/shell.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bb/shell.py b/lib/bb/shell.py
index 34828fe42..b825d9fde 100644
--- a/lib/bb/shell.py
+++ b/lib/bb/shell.py
@@ -240,18 +240,14 @@ class BitBakeShellCommands:
bf = completeFilePath( name )
print "SHELL: Calling '%s' on '%s'" % ( cmd, bf )
- oldcmd = cooker.configuration.cmd
- cooker.configuration.cmd = cmd
-
try:
- cooker.buildFile(bf)
+ cooker.buildFile(bf, cmd)
except parse.ParseError:
print "ERROR: Unable to open or parse '%s'" % bf
except build.EventException, e:
print "ERROR: Couldn't build '%s'" % name
last_exception = e
- cooker.configuration.cmd = oldcmd
fileBuild.usage = "<bbfile>"
def fileClean( self, params ):