From ffff5fa2d7cf9c7af6475725ac3e71ffd4e4bfba Mon Sep 17 00:00:00 2001 From: Matthew McClintock Date: Wed, 1 Aug 2012 14:19:02 -0500 Subject: bitbake/fetch2: remove references to ChecksumError class From: Matthew McClintock 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 Signed-off-by: Scott Garman --- bitbake/lib/bb/fetch2/__init__.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 798a29b363..7e8bda2fa9 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -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: -- cgit v1.2.3-54-g00ecf