diff options
author | Nathan Rossi <nathan@nathanrossi.com> | 2018-02-02 23:51:15 +1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-02-14 15:26:03 +0000 |
commit | f2d5967982359b924406e3937a8e32807a5bb533 (patch) | |
tree | ef149278615cd8683e7893ef5ae0a69f658cf334 /bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |
parent | bb3a634226c68b235d0110b9955d0aae7dde994a (diff) | |
download | poky-f2d5967982359b924406e3937a8e32807a5bb533.tar.gz |
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>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/localhostbecontroller.py')
0 files changed, 0 insertions, 0 deletions