diff options
author | Ash Charles <ashcharles@gmail.com> | 2015-05-22 08:39:30 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-24 07:27:02 +0100 |
commit | 2df35a25b4968f64adfa673d5b73442c1a30829d (patch) | |
tree | 8e498182e456c857d4f3c58095d2b3ba696ebdc7 | |
parent | 7023f5431345e1613bc155be5a9560c8a88e8642 (diff) | |
download | bitbake-2df35a25b4968f64adfa673d5b73442c1a30829d.tar.gz |
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
Signed-off-by: Ash Charles <ashcharles@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/hg.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py index 3c80725f8..cdef4aa11 100644 --- a/lib/bb/fetch2/hg.py +++ b/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 |