summaryrefslogtreecommitdiffstats
path: root/bin/bitbake-diffsigs
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-08-05 15:47:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-02 16:29:36 +0100
commit131e6dc4bbd197774d35d2b266bfb0816f6e6b1e (patch)
treef8d0161f806d32b3a4d593c6f097ff77e8025208 /bin/bitbake-diffsigs
parentf59bc6be2b4af1acdcf6a1b184956b5ffd297743 (diff)
downloadbitbake-contrib-131e6dc4bbd197774d35d2b266bfb0816f6e6b1e.tar.gz
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 ..."). Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'bin/bitbake-diffsigs')
-rwxr-xr-xbin/bitbake-diffsigs6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/bitbake-diffsigs b/bin/bitbake-diffsigs
index 3b6ef8811..527d2c7a9 100755
--- a/bin/bitbake-diffsigs
+++ b/bin/bitbake-diffsigs
@@ -115,9 +115,9 @@ parser.add_option("-t", "--task",
options, args = parser.parse_args(sys.argv)
if options.taskargs:
- tinfoil = bb.tinfoil.Tinfoil()
- tinfoil.prepare(config_only = True)
- find_compare_task(tinfoil, options.taskargs[0], options.taskargs[1])
+ with bb.tinfoil.Tinfoil() as tinfoil:
+ tinfoil.prepare(config_only=True)
+ find_compare_task(tinfoil, options.taskargs[0], options.taskargs[1])
else:
if len(args) == 1:
parser.print_help()