]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: ensure we change back to the original dir on error
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 14 Oct 2015 20:15:33 +0000 (21:15 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:30:54 +0000 (21:30 +0000)
commita30b407474d4eb6620f1ec549b54187ebbaff008
tree117a4dbef8df9ae8d112bf0e093e3795b2a65a19
parent596dee8882ebddb45a6cce9f12aa919107106156
devtool: ensure we change back to the original dir on error

This is just belt-and-braces but we ought to use try..finally in this
kind of situation, so just do it.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/__init__.py