bitbake: fetch2: avoid printing "no checksum" error message twice
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 20 Dec 2013 14:48:45 +0000 (14:48 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 22 Dec 2013 14:29:13 +0000 (14:29 +0000)
commitf78bc207b2dbc1015ad2293dca53ab3c1cecb038
tree63361bef439a7b5329a700e3997fb095a616d38a
parent6c6415fe17ebe375b35baf6aa648e59289be3585
bitbake: fetch2: avoid printing "no checksum" error message twice

Because of the way we were handling this error, it was printed twice -
once via logger.error() (to avoid the log being printed) and a second
time when the exception gets wrapped in a FuncFailed at a higher level.
Call logger.error() earlier and change the text we send in the
exception to be more brief, so it more closely resembles the behaviour
when there is an invalid checksum.

(Bitbake rev: 46765369d7f76ec7f67b90430131a79eb6a66235)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py