From 70c1d222c08ba5bdca416c6f1c2bcb0f15c93126 Mon Sep 17 00:00:00 2001 From: Ash Charles Date: Fri, 22 May 2015 08:39:30 -0700 Subject: bitbake: fetch/hg: Disable checksums for archived downloads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (Bitbake rev: 2df35a25b4968f64adfa673d5b73442c1a30829d) Signed-off-by: Ash Charles Signed-off-by: Richard Purdie --- 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 3c80725f86..cdef4aa110 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 -- cgit v1.2.3-54-g00ecf