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>
import sys
import logging
import shlex
+import glob
import bb
import bb.msg
import bb.process
"""
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