diff options
Diffstat (limited to 'bitbake/lib/bb/build.py')
-rw-r--r-- | bitbake/lib/bb/build.py | 6 |
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): stamp = stamp_internal(task, d, file_name) # Remove the file and recreate to force timestamp # change on broken NFS filesystems - if os.access(stamp, os.F_OK): - os.remove(stamp) if stamp: + bb.utils.remove(stamp) f = open(stamp, "w") f.close() @@ -417,8 +416,7 @@ def del_stamp(task, d, file_name = None): (d can be a data dict or dataCache) """ stamp = stamp_internal(task, d, file_name) - if os.access(stamp, os.F_OK): - os.remove(stamp) + bb.utils.remove(stamp) def stampfile(taskname, d): return stamp_internal(taskname, d, None) |