From f99ac522027dfd0331ff37c551766ec8acfce697 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Sun, 20 May 2012 20:16:35 +0300 Subject: 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 --- bitbake/lib/bb/fetch2/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bitbake') diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 98645956fb..e3ac4d20a3 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): -- cgit 1.2.3-korg