[bitbake-devel] [PATCH 1/1] bitbake/fetch2: allow resuming interrupted fetch

Richard Purdie richard.purdie at linuxfoundation.org
Fri Jan 20 16:41:10 UTC 2012


On Mon, 2012-01-16 at 15:01 +0000, Paul Eggleton wrote:
> A lot of our checks in the fetcher code assume that if the downloaded
> file exists, the download finished successfully; this meant that if
> BitBake was interrupted in the middle of a fetch then it would not
> resume the fetch the next time, but instead attempt to use the
> half-fetched file and usually fail as a result.
> 
> Since we're already writing a ".done" stamp file when a fetch completes,
> just check for its existence and assume the download didn't complete
> successfully if it isn't present.
> 
> Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
> ---
>  bitbake/lib/bb/fetch2/__init__.py |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)

Merged to master, thanks.

Richard





More information about the bitbake-devel mailing list