[bitbake-devel] [PATCH] fetch2: Handle missing donestamp file when content is valid

Nathan Rossi nathan at nathanrossi.com
Thu Feb 1 13:29:21 UTC 2018


On 1 February 2018 at 23:12, Richard Purdie
<richard.purdie at linuxfoundation.org> wrote:
> On Thu, 2018-02-01 at 01:07 +1000, Nathan Rossi wrote:
>> 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.
>>
>> Signed-off-by: Nathan Rossi <nathan at nathanrossi.com>
>> ---
>>  lib/bb/fetch2/__init__.py | 13 +++++--------
>>  1 file changed, 5 insertions(+), 8 deletions(-)
>
> Could I persuade you into adding a test of this in
> lib/bb/tests/fetch.py?
>
> The advantage is that then we hopefully don't break this again!

Sure, I'll sort out a v2 with some tests.

Regards,
Nathan



More information about the bitbake-devel mailing list