summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/wget.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/wget.py')
-rw-r--r--bitbake/lib/bb/fetch2/wget.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py
index b2b542e1dc..821afa5b58 100644
--- a/bitbake/lib/bb/fetch2/wget.py
+++ b/bitbake/lib/bb/fetch2/wget.py
@@ -132,6 +132,11 @@ class Wget(FetchMethod):
132 132
133 self._runwget(ud, d, fetchcmd, False) 133 self._runwget(ud, d, fetchcmd, False)
134 134
135 # Try and verify any checksum now, meaning if it isn't correct, we don't remove the
136 # original file, which might be a race (imagine two recipes referencing the same
137 # source, one with an incorrect checksum)
138 bb.fetch2.verify_checksum(ud, d, localpath=localpath, fatal_nochecksum=False)
139
135 # Remove the ".tmp" and move the file into position atomically 140 # Remove the ".tmp" and move the file into position atomically
136 # Our lock prevents multiple writers but mirroring code may grab incomplete files 141 # Our lock prevents multiple writers but mirroring code may grab incomplete files
137 os.rename(localpath, localpath[:-4]) 142 os.rename(localpath, localpath[:-4])