diff options
author | Ash Charles <ashcharles@gmail.com> | 2015-05-22 08:39:30 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-26 10:33:06 +0100 |
commit | 70c1d222c08ba5bdca416c6f1c2bcb0f15c93126 (patch) | |
tree | 87853965f68f0c1b954f42973986154d0fa508f1 /bitbake/lib/bb/fetch2 | |
parent | 5170177719a93a69cc6c7c1218b3f26eed82d6e0 (diff) | |
download | poky-70c1d222c08ba5bdca416c6f1c2bcb0f15c93126.tar.gz |
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 <ashcharles@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): | |||
43 | """ | 43 | """ |
44 | return ud.type in ['hg'] | 44 | return ud.type in ['hg'] |
45 | 45 | ||
46 | def supports_checksum(self, urldata): | ||
47 | """ | ||
48 | Don't require checksums for local archives created from | ||
49 | repository checkouts. | ||
50 | """ | ||
51 | return False | ||
52 | |||
46 | def urldata_init(self, ud, d): | 53 | def urldata_init(self, ud, d): |
47 | """ | 54 | """ |
48 | init hg specific variable within url data | 55 | init hg specific variable within url data |