]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
sstate: Ensure sstate searches update file mtime
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 6 Nov 2023 14:51:12 +0000 (14:51 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Nov 2023 10:56:33 +0000 (10:56 +0000)
commita27fc0bd5706ab5b9c68a0271fcf57377a678cdf
tree5a6f219e5fceb9d6ff958b6624c2a668f9e1c742
parent8b56191077ffb7f33061d95c350244e9346a1fb0
sstate: Ensure sstate searches update file mtime

Commands like "bitbake XXX -S printdiff" search for sstate files but don't download
them. This means that local files aren't touched as the download code would do, meaning
the sstate cleanup scripts can delete them. This can then lead to obtuse build failures.

Have the search code touch local files in the same way as the main code paths would to
avoid these files disappearing.

Move the function to a common touch() function in lib/oe instead of duplicating code.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/sstate.bbclass
meta/lib/oe/utils.py