diff options
Diffstat (limited to 'bitbake/lib/bb/shell.py')
-rw-r--r-- | bitbake/lib/bb/shell.py | 23 |
1 files changed, 5 insertions, 18 deletions
diff --git a/bitbake/lib/bb/shell.py b/bitbake/lib/bb/shell.py index 745091fb7d..feba3f2b44 100644 --- a/bitbake/lib/bb/shell.py +++ b/bitbake/lib/bb/shell.py | |||
@@ -243,27 +243,13 @@ class BitBakeShellCommands: | |||
243 | oldcmd = cooker.configuration.cmd | 243 | oldcmd = cooker.configuration.cmd |
244 | cooker.configuration.cmd = cmd | 244 | cooker.configuration.cmd = cmd |
245 | 245 | ||
246 | thisdata = data.createCopy(cooker.configuration.data) | ||
247 | data.update_data(thisdata) | ||
248 | data.expandKeys(thisdata) | ||
249 | |||
250 | try: | 246 | try: |
251 | bbfile_data = parse.handle( bf, thisdata ) | 247 | cooker.buildFile(bf) |
252 | except parse.ParseError: | 248 | except parse.ParseError: |
253 | print "ERROR: Unable to open or parse '%s'" % bf | 249 | print "ERROR: Unable to open or parse '%s'" % bf |
254 | else: | 250 | except build.EventException, e: |
255 | # Remove stamp for target if force mode active | 251 | print "ERROR: Couldn't build '%s'" % name |
256 | if cooker.configuration.force: | 252 | last_exception = e |
257 | bb.msg.note(2, bb.msg.domain.RunQueue, "Remove stamp %s, %s" % (cmd, bf)) | ||
258 | bb.build.del_stamp('do_%s' % cmd, bbfile_data) | ||
259 | |||
260 | item = data.getVar('PN', bbfile_data, 1) | ||
261 | data.setVar( "_task_cache", [], bbfile_data ) # force | ||
262 | try: | ||
263 | cooker.tryBuildPackage( os.path.abspath( bf ), item, cmd, bbfile_data, True ) | ||
264 | except build.EventException, e: | ||
265 | print "ERROR: Couldn't build '%s'" % name | ||
266 | last_exception = e | ||
267 | 253 | ||
268 | cooker.configuration.cmd = oldcmd | 254 | cooker.configuration.cmd = oldcmd |
269 | fileBuild.usage = "<bbfile>" | 255 | fileBuild.usage = "<bbfile>" |
@@ -586,6 +572,7 @@ SRC_URI = "" | |||
586 | 572 | ||
587 | def completeFilePath( bbfile ): | 573 | def completeFilePath( bbfile ): |
588 | """Get the complete bbfile path""" | 574 | """Get the complete bbfile path""" |
575 | if not cooker.status: return bbfile | ||
589 | if not cooker.status.pkg_fn: return bbfile | 576 | if not cooker.status.pkg_fn: return bbfile |
590 | for key in cooker.status.pkg_fn.keys(): | 577 | for key in cooker.status.pkg_fn.keys(): |
591 | if key.endswith( bbfile ): | 578 | if key.endswith( bbfile ): |