summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 700efcb4ac..4919b9d473 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -139,13 +139,21 @@ def go(d):
139 if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5): 139 if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5):
140 # File already present along with md5 stamp file 140 # File already present along with md5 stamp file
141 # Touch md5 file to show activity 141 # Touch md5 file to show activity
142 os.utime(ud.md5, None) 142 try:
143 os.utime(ud.md5, None)
144 except:
145 # Errors aren't fatal here
146 pass
143 continue 147 continue
144 lf = bb.utils.lockfile(ud.lockfile) 148 lf = bb.utils.lockfile(ud.lockfile)
145 if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5): 149 if not m.forcefetch(u, ud, d) and os.path.exists(ud.md5):
146 # If someone else fetched this before we got the lock, 150 # If someone else fetched this before we got the lock,
147 # notice and don't try again 151 # notice and don't try again
148 os.utime(ud.md5, None) 152 try:
153 os.utime(ud.md5, None)
154 except:
155 # Errors aren't fatal here
156 pass
149 bb.utils.unlockfile(lf) 157 bb.utils.unlockfile(lf)
150 continue 158 continue
151 m.go(u, ud, d) 159 m.go(u, ud, d)