generic-poky/bitbake/lib/bb/fetch2
Clemens Lang 36e47a99ae bitbake: 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.

(Bitbake rev: fbd4a0d422cf7f43db2f9eab2e47c41246a9031e)

Signed-off-by: Clemens Lang <clemens.lang@bmw-carit.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-03-09 14:57:00 +00:00
..
__init__.py bitbake: fetch2: Revalidate checksums, YOCTO #5571 2015-03-09 14:57:00 +00:00
bzr.py bitbake: fetch2: Correct a few calls to latest_revision() 2013-11-25 13:02:27 +00:00
clearcase.py bitbake: fetch2: Add module for ClearCase (ccrc://) 2014-07-21 19:24:29 +01:00
cvs.py bitbake: fetch2: Stop passing around the pointless url parameter 2013-11-22 12:03:02 +00:00
git.py bitbake: fetch/git: Improve ls-remote handling for latest_revision 2015-01-14 11:32:01 +00:00
gitannex.py bitbake: fetch2/gitannex: Fix function arguments to match bitbake master 2014-01-08 15:27:37 +00:00
gitsm.py bitbake: fetch2/gitsm: Documentation improvements for gitsm:// fetcher 2014-05-19 12:04:34 +01:00
hg.py bitbake: fetch2/hg: Fix username/password handling 2014-08-28 15:12:45 +01:00
local.py bitbake: wget: Add localpaths method which gives localpath with history 2015-01-08 09:52:52 +00:00
osc.py bitbake: fetch2: Stop passing around the pointless url parameter 2013-11-22 12:03:02 +00:00
perforce.py bitbake: fetch2/perforce: Use replace (1 line) instead of find (3 lines) 2014-09-23 20:21:12 +01:00
repo.py bitbake: fetch2: Stop passing around the pointless url parameter 2013-11-22 12:03:02 +00:00
sftp.py bitbake: fetch2: Stop passing around the pointless url parameter 2013-11-22 12:03:02 +00:00
ssh.py bitbake: bb/fetch2/ssh.py: Fix urldata.localpath use os.path.normpath 2015-01-14 11:32:01 +00:00
svn.py bitbake: fetch2/svn: Add transportuser parameter 2014-07-04 09:28:36 +01:00
wget.py bitbake: fetch2: wget remove scape of - in regexes don't needed 2015-02-16 09:13:06 +00:00