]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
rm_work: handle non-existant stamps directory
authorRoss Burton <ross.burton@arm.com>
Tue, 3 Jan 2023 17:47:34 +0000 (17:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 Jan 2023 12:03:31 +0000 (12:03 +0000)
commit80e9b32a000b25420997068543d3631231eb3ccf
treea25cb6e1b663278e4971bc906af7899b2eb2b398
parent86bc9469e2b7c1a42db8d85f3d2dab7c3a34c438
rm_work: handle non-existant stamps directory

Since 'build/siggen: Rework stamps functions'[1] the stamps directory
for each recipe is only created if there are stamps to be written. Some
recipes - such as package-index - only have nostamp tasks so the stamps
directory is never created, resulting in the rm_work task trying to cd
into a directory that doesn't exist.

Resolve this by simply checking the stamps directory exists before
trying to delete files in it.

[1] bitbake c79ecec580e4c2a141ae483ec0f6448f70593dcf

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rm_work.bbclass