From: Ash Charles Date: Fri, 22 May 2015 15:39:30 +0000 (-0700) Subject: bitbake: fetch/hg: Disable checksums for archived downloads X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=70c1d222c08ba5bdca416c6f1c2bcb0f15c93126;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: fetch/hg: Disable checksums for archived downloads 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 --- diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index 3c80725f86a..cdef4aa1101 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