diff options
-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) |