diff mbox series

[2/6] fetch2: Drop unneeded checksum check

Message ID 20260813124834.1770307-2-richard.purdie@linuxfoundation.org
State New
Headers show
Series [1/6] fetch/__init__: Clean up minor mirror code duplication | expand

Commit Message

Richard Purdie Aug. 13, 2026, 12:48 p.m. UTC
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 <richard.purdie@linuxfoundation.org>
---
 lib/bb/fetch2/__init__.py | 9 ---------
 1 file changed, 9 deletions(-)
diff mbox series

Patch

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: