]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
lib/oe/patch: ensure os.chdir restoring always happens
authorRoss Burton <ross.burton@arm.com>
Tue, 21 Nov 2023 14:06:17 +0000 (14:06 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 22 Nov 2023 14:08:45 +0000 (14:08 +0000)
commitcdc40292818683b6df1c814498c7589450a163fa
tree737472559bce1e705c4bf1259fa41ee9cb4992fd
parent63bc72ccb63d2f8eb591d7cc481657a538f0fd42
lib/oe/patch: ensure os.chdir restoring always happens

If we chdir(), do the chdir back to the original directory in a finally
block so they always run.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/patch.py