mirror of
https://git.yoctoproject.org/poky
synced 2026-02-07 09:16:36 +01:00
bitbake/fetch2: remove references to ChecksumError class
From: Matthew McClintock <msm@freescale.com> When merging fetch2 improvements from master into denzil, there were too many dependencies to pull in the entire ChecksumError class, so this patch removes references to ChecksumError for compatability. Fixes this issue: NameError: global name 'ChecksumError' is not defined Signed-off-by: Matthew McClintock <msm@freescale.com> Signed-off-by: Scott Garman <scott.a.garman@intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
119b7ff164
commit
ffff5fa2d7
@@ -525,12 +525,8 @@ def try_mirror_url(newuri, origud, ud, ld, check = False):
|
||||
raise
|
||||
|
||||
except bb.fetch2.BBFetchException as e:
|
||||
if isinstance(e, ChecksumError):
|
||||
logger.warn("Mirror checksum failure for url %s (original url: %s)\nCleaning and trying again." % (newuri, origud.url))
|
||||
logger.warn(str(e))
|
||||
else:
|
||||
logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url))
|
||||
logger.debug(1, str(e))
|
||||
logger.debug(1, "Mirror fetch failure for url %s (original url: %s)" % (newuri, origud.url))
|
||||
logger.debug(1, str(e))
|
||||
try:
|
||||
ud.method.clean(ud, ld)
|
||||
except UnboundLocalError:
|
||||
|
||||
Reference in New Issue
Block a user