diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-05-20 20:16:35 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-21 09:59:00 +0100 |
commit | f99ac522027dfd0331ff37c551766ec8acfce697 (patch) | |
tree | 73e14a2d52b9c53c2346b9320bb416325e370c8e | |
parent | b4c8c74a45e386f99344cf9799eb5294ad6c9e3e (diff) | |
download | poky-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>
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 5 |
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): |