summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/build.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r--bitbake/lib/bb/build.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py
index f127796c07..bd9b93a12d 100644
--- a/bitbake/lib/bb/build.py
+++ b/bitbake/lib/bb/build.py
@@ -405,9 +405,8 @@ def make_stamp(task, d, file_name = None):
405 stamp = stamp_internal(task, d, file_name) 405 stamp = stamp_internal(task, d, file_name)
406 # Remove the file and recreate to force timestamp 406 # Remove the file and recreate to force timestamp
407 # change on broken NFS filesystems 407 # change on broken NFS filesystems
408 if os.access(stamp, os.F_OK):
409 os.remove(stamp)
410 if stamp: 408 if stamp:
409 bb.utils.remove(stamp)
411 f = open(stamp, "w") 410 f = open(stamp, "w")
412 f.close() 411 f.close()
413 412
@@ -417,8 +416,7 @@ def del_stamp(task, d, file_name = None):
417 (d can be a data dict or dataCache) 416 (d can be a data dict or dataCache)
418 """ 417 """
419 stamp = stamp_internal(task, d, file_name) 418 stamp = stamp_internal(task, d, file_name)
420 if os.access(stamp, os.F_OK): 419 bb.utils.remove(stamp)
421 os.remove(stamp)
422 420
423def stampfile(taskname, d): 421def stampfile(taskname, d):
424 return stamp_internal(taskname, d, None) 422 return stamp_internal(taskname, d, None)