]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bb/fetch2/__init__.py: Don't try to compute checksums for directories
authorAndrei Gherzan <andrei@gherzan.ro>
Sun, 20 May 2012 17:16:35 +0000 (20:16 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 May 2012 08:59:00 +0000 (09:59 +0100)
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>
bitbake/lib/bb/fetch2/__init__.py

index 98645956fb86fa06fd4ef99b96bd4546c5b9d4ef..e3ac4d20a3ff4ffb8a1a50272c04422d9412d946 100644 (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):