diff options
author | Richard Purdie <richard@openedhand.com> | 2008-03-03 22:01:45 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-03-03 22:01:45 +0000 |
commit | ab191d21e2e5e1609206146d238af6ec0b3f0554 (patch) | |
tree | 728fa74dbf00f6b11964aa53b8427a0d221d6e91 /bitbake/lib/bb/fetch | |
parent | e88b4753781d54dc2625c3260c611d30ad76dbed (diff) | |
download | poky-ab191d21e2e5e1609206146d238af6ec0b3f0554.tar.gz |
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
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 12 |
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) |