[PATCH 2/6] fetch2: Drop unneeded checksum check
Richard Purdie <[email protected]>
| Newsgroups | org.openembedded.lists.bitbake-devel |
|---|---|
| Message-ID | <[email protected]> |
This was added in 022adb30dbb0df764c9fb515918cb9a88e4f8d6f however the checksum exception is now correctly handled in try_mirror_url so this code block is just duplication and not needed anymore. Signed-off-by: Richard Purdie <[email protected]> --- lib/bb/fetch2/__init__.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 604208c2c82..51db8304c65 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1925,15 +1925,6 @@ class Fetch(object): done = True elif m.try_premirror(ud, self.d): done = m.try_mirrors(self, ud, self.d, 'PREMIRRORS') - if done: - try: - # early checksum verification so that if the checksum of the premirror - # contents mismatch the fetcher can still try upstream and mirrors - m.update_donestamp(ud, self.d) - except ChecksumError as e: - logger.warning("Checksum failure encountered with premirror download of %s - will attempt other sources." % u) - logger.debug(str(e)) - done = False d = self.d if premirroronly: