From: Andrei Gherzan Date: Sun, 20 May 2012 17:16:35 +0000 (+0300) Subject: bb/fetch2/__init__.py: Don't try to compute checksums for directories X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f99ac522027dfd0331ff37c551766ec8acfce697;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 98645956fb8..e3ac4d20a3f 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):