diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2015-08-05 15:47:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-02 18:09:48 +0100 |
commit | f551e67fa79810ac82d5a226a328b8d79ba725fe (patch) | |
tree | dd3b3b595ae5588cec74767350ed4ce4801f709b /bitbake/bin/bitbake-diffsigs | |
parent | 8f277fcf338cbbb191e4f1ccd547c52ef5f8a107 (diff) | |
download | poky-f551e67fa79810ac82d5a226a328b8d79ba725fe.tar.gz |
bitbake: bitbake-diffsigs/bitbake-layers: Ensure tinfoil is shut down correctly
We should always shut down tinfoil when we're finished with it, either
by explicitly calling the shutdown() method or by using it as a
context manager ("with ...").
(Bitbake rev: 131e6dc4bbd197774d35d2b266bfb0816f6e6b1e)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-diffsigs')
-rwxr-xr-x | bitbake/bin/bitbake-diffsigs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs index 3b6ef8811c..527d2c7a9c 100755 --- a/bitbake/bin/bitbake-diffsigs +++ b/bitbake/bin/bitbake-diffsigs | |||
@@ -115,9 +115,9 @@ parser.add_option("-t", "--task", | |||
115 | options, args = parser.parse_args(sys.argv) | 115 | options, args = parser.parse_args(sys.argv) |
116 | 116 | ||
117 | if options.taskargs: | 117 | if options.taskargs: |
118 | tinfoil = bb.tinfoil.Tinfoil() | 118 | with bb.tinfoil.Tinfoil() as tinfoil: |
119 | tinfoil.prepare(config_only = True) | 119 | tinfoil.prepare(config_only=True) |
120 | find_compare_task(tinfoil, options.taskargs[0], options.taskargs[1]) | 120 | find_compare_task(tinfoil, options.taskargs[0], options.taskargs[1]) |
121 | else: | 121 | else: |
122 | if len(args) == 1: | 122 | if len(args) == 1: |
123 | parser.print_help() | 123 | parser.print_help() |