fetch2: improve usability of checksums
authorJoshua Lock <josh@linux.intel.com>
Tue, 11 Oct 2011 00:24:41 +0000 (17:24 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 24 Oct 2011 16:35:42 +0000 (17:35 +0100)
commitf48f30ef4fb49195df501aa2b1951970330483aa
tree346fc83d9cef58f5775ca84818dc3a45a36db3e1
parent62128ea092c18cdbbe07028620eb704a621ff0c9
fetch2: improve usability of checksums

This patch improves the usability of checksums by only requiring one checksum
be defined.

Further, checksum verification will provide as much information as possible
at, rather than a bit at a time. No longer will you need to run fetch, see an
md5sum mismatch, fix it, run fetch, seen an sha256sum mismatch, fix it and
fetch again. If neither checksum is defined we now report both missing sums
at once - rather than one after the other.
Finally, if both sums are incorrect, we'll report both incorrect sums at the
same time.

Fixes part of [YOCTO #1399]

(Bitbake rev: 30ca41e596955fcbbe1ae6f4436ecf14cef96f8d)

Signed-off-by: Joshua Lock <josh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py