diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-02-27 23:50:44 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-02-27 23:50:44 +0000 |
commit | 435d04828a06ade315e5dc7d74e35e51f5429e40 (patch) | |
tree | 359df6d01e81e125062de8da69d1bf2432cf16b5 | |
parent | f0b8d75a283610dd5b0705ce91feb1e857239891 (diff) | |
download | bitbake-435d04828a06ade315e5dc7d74e35e51f5429e40.tar.gz |
fetch/__init__.py: Make fetcher timestamp updating non-fatal when permissions don't allow updates
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | lib/bb/fetch/__init__.py | 12 |
2 files changed, 12 insertions, 2 deletions
@@ -110,6 +110,8 @@ Changes in Bitbake 1.9.x: - Convert -b option to use taskdata/runqueue - Remove digraph and switch to new stamp checking code. exec_task no longer honours dependencies + - Make fetcher timestamp updating non-fatal when permissions don't allow + updates Changes in Bitbake 1.8.0: - Release 1.7.x as a stable series diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py index 700efcb4a..4919b9d47 100644 --- a/lib/bb/fetch/__init__.py +++ b/lib/bb/fetch/__init__.py @@ -139,13 +139,21 @@ def go(d): if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5): # File already present along with md5 stamp file # Touch md5 file to show activity - os.utime(ud.md5, None) + try: + os.utime(ud.md5, None) + except: + # Errors aren't fatal here + pass continue lf = bb.utils.lockfile(ud.lockfile) if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5): # If someone else fetched this before we got the lock, # notice and don't try again - os.utime(ud.md5, None) + try: + os.utime(ud.md5, None) + except: + # Errors aren't fatal here + pass bb.utils.unlockfile(lf) continue m.go(u, ud, d) |