summaryrefslogtreecommitdiffstats
path: root/bitbake
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-07 17:25:55 +0000
commit26388f878957c5727f75a989cb3523114e35c0cc (patch)
tree15ce5b3729af3fc244d23a3f1bdf9e99976c8e5b /bitbake
parent3f15153bebc3f80a3db1ec7a8a4eadb42279d524 (diff)
downloadpoky-26388f878957c5727f75a989cb3523114e35c0cc.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/build.py9
1 files changed, 7 insertions, 2 deletions
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
29import sys 29import sys
30import logging 30import logging
31import shlex 31import shlex
32import glob
32import bb 33import bb
33import bb.msg 34import bb.msg
34import bb.process 35import bb.process
@@ -504,8 +505,12 @@ def make_stamp(task, d, file_name = None):
504 """ 505 """
505 cleanmask = stamp_cleanmask_internal(task, d, file_name) 506 cleanmask = stamp_cleanmask_internal(task, d, file_name)
506 for mask in cleanmask: 507 for mask in cleanmask:
507 bb.utils.remove(mask) 508 # Preserve sigdata files in the stamps directory
508 509 for name in glob.glob(mask):
510 if "sigdata" in name:
511 continue
512 os.unlink(name)
513
509 stamp = stamp_internal(task, d, file_name) 514 stamp = stamp_internal(task, d, file_name)
510 # Remove the file and recreate to force timestamp 515 # Remove the file and recreate to force timestamp
511 # change on broken NFS filesystems 516 # change on broken NFS filesystems