]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
lib/oe/gpg_sign.py: Avoid race when creating .sig files in detach_sign
authorTobias Hagelborn <tobias.hagelborn@axis.com>
Thu, 30 Mar 2023 15:38:09 +0000 (17:38 +0200)
committerSteve Sakoman <steve@sakoman.com>
Wed, 5 Apr 2023 16:24:00 +0000 (06:24 -1000)
commitbbb20a6d74aebff830fcb0c69739a10fd64d9cf3
tree28841c34d0d675f77ad99804c58ef54c48bdca31
parent3479caf1eb1a67c53722ca774bfd94145b3669b5
lib/oe/gpg_sign.py: Avoid race when creating .sig files in detach_sign

Move the signature file into place only after it is successfully signed.
This to avoid race and corrupted .sig files in cases multiple onging
builds write to a shared sstate-cache dir.

Signed-off-by: Tobias Hagelborn <tobiasha@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit b4ec08ea9efebac262d43f47d95a356fe2829de9)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oe/gpg_sign.py