[poky] [PATCH 11/57] bitbake/fetch2: remove references to ChecksumError class
Scott Garman
scott.a.garman at intel.com
Mon Aug 13 14:19:37 PDT 2012
From: Matthew McClintock <msm at freescale.com>
From: Matthew McClintock <msm at 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 at freescale.com>
Signed-off-by: Scott Garman <scott.a.garman at intel.com>
---
bitbake/lib/bb/fetch2/__init__.py | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 798a29b..7e8bda2 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:
--
1.7.9.5
More information about the poky
mailing list