summaryrefslogtreecommitdiffstats
path: root/meta/recipes-example/rust-hello-world
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2022-01-22 01:02:51 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-01-26 06:25:33 +0000
commit552197a0c4c9f75a9177c00b197ea91296ed9fc4 (patch)
treeac6eb1b468da3cc0cef02d60ecb47bea9a89038b /meta/recipes-example/rust-hello-world
parentc134f62062a6359d2d5831ba4cb9694035e4f25a (diff)
downloadopenembedded-core-552197a0c4c9f75a9177c00b197ea91296ed9fc4.tar.gz
sstate: A third fix for for touching files inside pseudo
This continues where commit676757f "sstate: fix touching files inside pseudo" and commit 29fc8599 "sstate: another fix for touching files inside pseudo" left off. The previous changes switched from trying to check if the sstate file is writable before touching it, to always touching the sstate file and ignoring any errors. However, if the sstate file is actually a symbolic link that links to nothing, this would actually result in an empty sstate file being created. And this in turn leads to that future setscene tasks will fail when they try to unpack the empty file. Change the code so that if an sstate file linking to nothing already exists, it is overwritten with the new sstate file. Also change it so that the temporary file that is used is always removed, even if ln fails to link the sstate file to it. Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-example/rust-hello-world')
0 files changed, 0 insertions, 0 deletions