]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: use tinfoil shutdown method
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 31 Jul 2015 09:31:34 +0000 (10:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 31 Jul 2015 14:15:12 +0000 (15:15 +0100)
Tinfoil now has its own shutdown method, use it instead of calling into
cooker - not only is it the right thing to do from an API perspective,
it also ensures proper lock handling.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/devtool

index 557a83013a89fbb5b0b02c253d587cac425cc677..5d37d3b4a44c107e67abfffbde87c8ee612591ab 100755 (executable)
@@ -244,8 +244,7 @@ def main():
                  tinfoil.config_data.getVar('BBPATH', True).split(':')):
         pluginpath = os.path.join(path, 'lib', 'devtool')
         scriptutils.load_plugins(logger, plugins, pluginpath)
-    tinfoil.cooker.shutdown(force=True)
-    tinfoil.cooker.unlockBitbake()
+    tinfoil.shutdown()
 
     subparsers = parser.add_subparsers(dest="subparser_name", title='subcommands', metavar='<subcommand>')