aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-28 19:39:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-03 15:12:33 +0000
commit1f500149ecd533a6edbeea902c3f1e009c755154 (patch)
tree102aee7a0db1d1f437ecc9397d5f2aa25aa47dc6 /lib
parentc14d831ea3f625e9a47266a0c4e6deefc924ca5a (diff)
downloadbitbake-1f500149ecd533a6edbeea902c3f1e009c755154.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/build.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py
index 8ff7fb293..43790a658 100644
--- a/lib/bb/build.py
+++ b/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