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 | poky-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): | |||
| 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 | ||
| 423 | def stampfile(taskname, d): | 421 | def stampfile(taskname, d): |
| 424 | return stamp_internal(taskname, d, None) | 422 | return stamp_internal(taskname, d, None) |
