In this way we avoid failing the build while trying to fetch local
directories.

[YOCTO #2475]

Signed-off-by: Andrei Gherzan <[email protected]>
---
 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


_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to