[OE-core] [PATCH] bb/fetch2/__init__.py: Don't try to compute checksums for directories
Andrei Gherzan
andrei at gherzan.ro
Sun May 20 17:16:35 UTC 2012
In this way we avoid failing the build while trying to fetch local
directories.
[YOCTO #2475]
Signed-off-by: Andrei Gherzan <andrei at gherzan.ro>
---
bitbake/lib/bb/fetch2/__init__.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 9864595..e3ac4d2 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):
--
1.7.9.5
More information about the Openembedded-core
mailing list