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