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/wget.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/wget.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 98900ac42c..e223b21b96 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -45,6 +45,9 @@ class Wget(FetchMethod): | |||
45 | """ | 45 | """ |
46 | return ud.type in ['http', 'https', 'ftp'] | 46 | return ud.type in ['http', 'https', 'ftp'] |
47 | 47 | ||
48 | def recommends_checksum(self, urldata): | ||
49 | return True | ||
50 | |||
48 | def urldata_init(self, ud, d): | 51 | def urldata_init(self, ud, d): |
49 | 52 | ||
50 | ud.basename = os.path.basename(ud.path) | 53 | ud.basename = os.path.basename(ud.path) |