From ab191d21e2e5e1609206146d238af6ec0b3f0554 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Mon, 3 Mar 2008 22:01:45 +0000 Subject: bitbake: Update to bitbake 1.8 branch head git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3892 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- bitbake/lib/bb/fetch/__init__.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/fetch/__init__.py') diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index 700efcb4a..4919b9d47 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/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) -- cgit v1.2.3