diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 1f63a045c1..ec65216fef 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1621,6 +1621,15 @@ class Fetch(object): | |||
1621 | logger.debug(1, "Trying PREMIRRORS") | 1621 | logger.debug(1, "Trying PREMIRRORS") |
1622 | mirrors = mirror_from_string(self.d.getVar('PREMIRRORS')) | 1622 | mirrors = mirror_from_string(self.d.getVar('PREMIRRORS')) |
1623 | localpath = try_mirrors(self, self.d, ud, mirrors, False) | 1623 | localpath = try_mirrors(self, self.d, ud, mirrors, False) |
1624 | if localpath: | ||
1625 | try: | ||
1626 | # early checksum verification so that if the checksum of the premirror | ||
1627 | # contents mismatch the fetcher can still try upstream and mirrors | ||
1628 | update_stamp(ud, self.d) | ||
1629 | except ChecksumError as e: | ||
1630 | logger.warning("Checksum failure encountered with premirror download of %s - will attempt other sources." % u) | ||
1631 | logger.debug(1, str(e)) | ||
1632 | localpath = "" | ||
1624 | 1633 | ||
1625 | if premirroronly: | 1634 | if premirroronly: |
1626 | self.d.setVar("BB_NO_NETWORK", "1") | 1635 | self.d.setVar("BB_NO_NETWORK", "1") |