]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cargo-update-recipe-crates: Properly close target file after writing
authorMartin Schwan <m.schwan@phytec.de>
Wed, 17 Dec 2025 13:06:44 +0000 (14:06 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Feb 2026 17:46:58 +0000 (17:46 +0000)
commitc48e7308c19a7f804c2383b68e5afcd1517a7162
tree2c2a4df9771ab3eedea59c3c7fd94ae2543debbd
parent1ef39b3fa731fb121d338aea2b1ac004620063e0
cargo-update-recipe-crates: Properly close target file after writing

In do_update_crates(), properly close the target_file after writing to
it using the "with" statement.

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cargo-update-recipe-crates.bbclass