From 2ef204dcdd28d60819ad7a413426b9676c54a3a4 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 10 Jan 2011 23:05:19 +0100 Subject: *: use utils.remove() some more (Bitbake rev: d3489b141cac1197324661680fe38b8a88bc49b4) Signed-off-by: Bernhard Reutner-Fischer Signed-off-by: Richard Purdie --- bitbake/lib/bb/build.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bitbake/lib/bb/build.py') 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) -- cgit v1.2.3-54-g00ecf