[oe] [PATCH] fetch/hg: Disable checksums for archived downloads

Robert Yang liezhi.yang at windriver.com
Fri May 29 01:49:37 UTC 2015


Hello,

I think that the following patch has broken the mirror tarball of hg:

http://lists.openembedded.org/pipermail/bitbake-devel/2015-May/005725.html

I wonder how did you test the patch, please ? Did you revert the patch:
  fetch/hg: support submodules ?

Or other ways, please ?

// Robert


On 05/22/2015 11:39 PM, Ash Charles wrote:
> Like the Git fetcher, the Mercurial fetcher shouldn't expect recipes to
> provide a checksum.  As described [1], recipes using a mercurial
> fetcher that don't provide a checksum will fail in a the repository has
> previously been downloaded and archived.
>
> Credit to Rafaël Carré for figuring out the bug.
>
> [1] https://www.mail-archive.com/openembedded-devel@lists.openembedded.org/msg41328.html
>
> Signed-off-by: Ash Charles <ashcharles at gmail.com>
> ---
>   bitbake/lib/bb/fetch2/hg.py | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
> index 81592f6..cab371f 100644
> --- a/bitbake/lib/bb/fetch2/hg.py
> +++ b/bitbake/lib/bb/fetch2/hg.py
> @@ -43,6 +43,13 @@ class Hg(FetchMethod):
>           """
>           return ud.type in ['hg']
>
> +    def supports_checksum(self, urldata):
> +        """
> +        Don't require checksums for local archives created from
> +        repository checkouts.
> +        """
> +        return False
> +
>       def urldata_init(self, ud, d):
>           """
>           init hg specific variable within url data
>



More information about the Openembedded-devel mailing list