poky/bitbake/lib/bb/fetch2
Nathan Rossi f2d5967982 bitbake: fetch2: Handle missing donestamp file when content is valid
In order to allow users to manually populate the download directory with
valid content change the assumption that missing the donestamp file
means unfetched content.

This allows users to populate the download dir without needing to create
dummy .done files such that a user does not need a PREMIRROR when using
BB_NO_NETWORK to provide valid content files in the download directory.

To ensure the correct result this change also fails first if the
localpath does not exist. This prevents further parts of the function
attempting to calculating the checksum on non-existent files. This also
fixes some edge conditions around where if the donestamp exists but the
localpath does not it returns, and did not remove the donestamp.

Also added test cases to cover this use case and additional use cases
where for example the fetcher does not support checksums.

(Bitbake rev: a335dbbb65d5b56e71d98cf3e4fa9bfbec1dcde6)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-02-14 15:26:03 +00:00
..
__init__.py bitbake: fetch2: Handle missing donestamp file when content is valid 2018-02-14 15:26:03 +00:00
bzr.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
clearcase.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
cvs.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
git.py bitbake: fetch/git: Use 'git-make-shallow' from bin directory 2018-02-14 15:26:03 +00:00
gitannex.py bitbake: fetch/gitannex: add support for shallow mirror tarballs 2017-06-02 13:36:57 +01:00
gitsm.py bitbake: fetch/gitsm: add support for shallow mirror tarballs 2017-06-02 13:36:57 +01:00
hg.py bitbake: fetch: support multiple mirror tarball filenames 2017-06-02 13:36:57 +01:00
local.py bitbake: fetch/local: Drop FILESDIR 2017-04-05 23:20:03 +01:00
npm.py bitbake: fetch2/npm.py: Fix inverted condition to prevent infinite loop 2018-02-14 15:26:03 +00:00
osc.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
perforce.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
repo.py bitbake: fetch2: Fix missing logger import in repo fetcher 2017-11-07 13:41:24 +00:00
s3.py bitbake: s3.py: Remove hardcoded aws 2017-03-30 10:42:18 +01:00
sftp.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
ssh.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
svn.py bitbake: fetch2: don't use deprecated bb.data APIs 2017-03-01 11:16:07 +00:00
wget.py bitbake: fetch/wget: use with to ensure the response is closed 2017-11-21 13:06:45 +00:00