diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2011-01-10 23:05:19 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-12 13:47:14 +0000 |
commit | 2ef204dcdd28d60819ad7a413426b9676c54a3a4 (patch) | |
tree | 64cefc01e17bedaea8501555277c9d4032e3ad6f /bitbake/lib/bb/build.py | |
parent | c405a3a13eb961365adb788e710fa26513605543 (diff) | |
download | openembedded-core-contrib-2ef204dcdd28d60819ad7a413426b9676c54a3a4.tar.gz |
*: use utils.remove() some more
(Bitbake rev: d3489b141cac1197324661680fe38b8a88bc49b4)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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) |