diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-05-20 20:16:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-21 09:59:00 +0100 |
commit | f99ac522027dfd0331ff37c551766ec8acfce697 (patch) | |
tree | 73e14a2d52b9c53c2346b9320bb416325e370c8e /bitbake | |
parent | b4c8c74a45e386f99344cf9799eb5294ad6c9e3e (diff) | |
download | openembedded-core-contrib-f99ac522027dfd0331ff37c551766ec8acfce697.tar.gz |
bb/fetch2/__init__.py: Don't try to compute checksums for directories
In this way we avoid failing the build while trying to fetch local
directories.
[YOCTO #2475]
(Bitbake rev: 39adb5741d9eee0879d3181be505400dffc60804)
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 98645956fb..e3ac4d20a3 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -671,6 +671,11 @@ class FetchMethod(object): """ Is localpath something that can be represented by a checksum? """ + + # We cannot compute checksums for directories + if os.path.isdir(urldata.localpath) == True: + return False + return True def recommends_checksum(self, urldata): |