From 8ef0e59d5a7da3671d1ad9a54fe068ed78f928d5 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 4 Feb 2013 11:27:36 +0000 Subject: sstate.bbclass: Ensure build directory is cleaned to start with This directory is cleaned upon completion however if a previous build crashes, it can lead to corrpution, hence ensure its clean at the start too. Signed-off-by: Richard Purdie --- meta/classes/sstate.bbclass | 1 + 1 file changed, 1 insertion(+) diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 6f77bb9013..118a28a54d 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -444,6 +444,7 @@ def sstate_package(ss, d): sstatebuild = d.expand("${WORKDIR}/sstate-build-%s/" % ss['name']) sstatepkg = d.getVar('SSTATE_PKG', True) + '_'+ ss['name'] + ".tgz" + bb.utils.remove(sstatebuild, recurse=True) bb.mkdirhier(sstatebuild) bb.mkdirhier(os.path.dirname(sstatepkg)) for state in ss['dirs']: -- cgit v1.2.3