diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index e229c30f61..3d53b63b3e 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -1590,7 +1590,8 @@ class Fetch(object): | |||
1590 | os.chdir(self.d.getVar("DL_DIR", True)) | 1590 | os.chdir(self.d.getVar("DL_DIR", True)) |
1591 | 1591 | ||
1592 | firsterr = None | 1592 | firsterr = None |
1593 | if not localpath and ((not verify_donestamp(ud, self.d)) or m.need_update(ud, self.d)): | 1593 | verified_stamp = verify_donestamp(ud, self.d) |
1594 | if not localpath and (not verified_stamp or m.need_update(ud, self.d)): | ||
1594 | try: | 1595 | try: |
1595 | if not trusted_network(self.d, ud.url): | 1596 | if not trusted_network(self.d, ud.url): |
1596 | raise UntrustedUrl(ud.url) | 1597 | raise UntrustedUrl(ud.url) |
@@ -1618,7 +1619,8 @@ class Fetch(object): | |||
1618 | logger.debug(1, str(e)) | 1619 | logger.debug(1, str(e)) |
1619 | firsterr = e | 1620 | firsterr = e |
1620 | # Remove any incomplete fetch | 1621 | # Remove any incomplete fetch |
1621 | m.clean(ud, self.d) | 1622 | if not verified_stamp: |
1623 | m.clean(ud, self.d) | ||
1622 | logger.debug(1, "Trying MIRRORS") | 1624 | logger.debug(1, "Trying MIRRORS") |
1623 | mirrors = mirror_from_string(self.d.getVar('MIRRORS', True)) | 1625 | mirrors = mirror_from_string(self.d.getVar('MIRRORS', True)) |
1624 | localpath = try_mirrors(self, self.d, ud, mirrors) | 1626 | localpath = try_mirrors(self, self.d, ud, mirrors) |