summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorAndrei Gherzan <andrei@gherzan.ro>2012-05-20 20:16:35 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-21 09:59:00 +0100
commitf99ac522027dfd0331ff37c551766ec8acfce697 (patch)
tree73e14a2d52b9c53c2346b9320bb416325e370c8e /bitbake/lib/bb/fetch2
parentb4c8c74a45e386f99344cf9799eb5294ad6c9e3e (diff)
downloadpoky-f99ac522027dfd0331ff37c551766ec8acfce697.tar.gz
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 <andrei@gherzan.ro> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py5
1 files changed, 5 insertions, 0 deletions
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):
671 """ 671 """
672 Is localpath something that can be represented by a checksum? 672 Is localpath something that can be represented by a checksum?
673 """ 673 """
674
675 # We cannot compute checksums for directories
676 if os.path.isdir(urldata.localpath) == True:
677 return False
678
674 return True 679 return True
675 680
676 def recommends_checksum(self, urldata): 681 def recommends_checksum(self, urldata):