From 26388f878957c5727f75a989cb3523114e35c0cc Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 28 Nov 2012 19:39:23 +0000 Subject: bitbake: build.py: Preserve sigdata files in the stamps directory Leaving the sigdata files around can aid debugging and doesn't harm anything. This is the easiest way to allow this to happen. (Bitbake rev: 65b795d900be19ac5e67c81eafc03a8bdedd3ece) Signed-off-by: Richard Purdie --- bitbake/lib/bb/build.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index 8ff7fb2931..43790a658a 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py @@ -29,6 +29,7 @@ import os import sys import logging import shlex +import glob import bb import bb.msg import bb.process @@ -504,8 +505,12 @@ def make_stamp(task, d, file_name = None): """ cleanmask = stamp_cleanmask_internal(task, d, file_name) for mask in cleanmask: - bb.utils.remove(mask) - + # Preserve sigdata files in the stamps directory + for name in glob.glob(mask): + if "sigdata" in name: + continue + os.unlink(name) + stamp = stamp_internal(task, d, file_name) # Remove the file and recreate to force timestamp # change on broken NFS filesystems -- cgit v1.2.3-54-g00ecf