]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
fetch2: Revalidate checksums, YOCTO #5571
authorClemens Lang <clemens.lang@bmw-carit.de>
Fri, 6 Mar 2015 14:28:54 +0000 (15:28 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Mar 2015 14:56:46 +0000 (14:56 +0000)
commitfbd4a0d422cf7f43db2f9eab2e47c41246a9031e
treedd783e81d5329f55489120ca8b1423f1e810096c
parentd4ac60c41f1ee9a8c59f9ede5b0948303f793afa
fetch2: Revalidate checksums, YOCTO #5571

[YOCTO #5571] -- https://bugzilla.yoctoproject.org/show_bug.cgi?id=5571

The following workflow (whether accidentally or deliberately) would
previously not result in a checksum error, but would be helpful to do
so:
 - Write a recipe with correct checksums
 - Fetch the sources for this recipe using bitbake
 - Change the checksums
Since the bitbake fetcher writes a done stamp after the initial download
and does not verify the checksums again (even if they are changed in the
recipe afterwards), the change of checksums is silently ignored.

Fix this without the overhead of computing the checksums from scratch on
every do_fetch by storing them in pickled format in the done stamp and
verifying that they still match those in the recipe.

Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py