diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-15 19:49:36 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-20 09:24:23 +0100 |
commit | b0b9ee29a216d63387684dd6c3934b059849ab5b (patch) | |
tree | b2120b56b3619e0871931439398baa4bb6cc814e /bitbake/lib/bb/fetch2/git.py | |
parent | 311c68bd06a5dc2df03f689f4061a8544716c930 (diff) | |
download | poky-b0b9ee29a216d63387684dd6c3934b059849ab5b.tar.gz |
bitbake/fetch: Spell out which fetcher backends support and recommend checksums
There were some hardcoded behaviours in the system for which backends
support checksums verses which backends recommend them verses which
don't recommend them.
This moves the functionality into specific fetchers and then makes the
general code generic. This cleans up the codebase and fixes some corner
cases such as trying to checksum directories returned by the git fetcher.
(Bitbake rev: ef6d268f7b8527541a7fb044cf95a973be4097f4)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 962cc0a484..ecc5e0ded8 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -82,6 +82,9 @@ class Git(FetchMethod): | |||
82 | """ | 82 | """ |
83 | return ud.type in ['git'] | 83 | return ud.type in ['git'] |
84 | 84 | ||
85 | def supports_checksum(self, urldata): | ||
86 | return False | ||
87 | |||
85 | def urldata_init(self, ud, d): | 88 | def urldata_init(self, ud, d): |
86 | """ | 89 | """ |
87 | init git specific variable within url data | 90 | init git specific variable within url data |