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>
This commit is contained in:
Andrei Gherzan 2012-05-20 20:16:35 +03:00 committed by Richard Purdie
parent b4c8c74a45
commit f99ac52202
1 changed files with 5 additions and 0 deletions

View File

@ -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):