diff options
Diffstat (limited to 'bitbake/lib/bb')
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 8afe012efb..2428a26fa6 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
| @@ -1402,6 +1402,9 @@ class FetchMethod(object): | |||
| 1402 | Is localpath something that can be represented by a checksum? | 1402 | Is localpath something that can be represented by a checksum? |
| 1403 | """ | 1403 | """ |
| 1404 | 1404 | ||
| 1405 | # We cannot compute checksums for None | ||
| 1406 | if urldata.localpath is None: | ||
| 1407 | return False | ||
| 1405 | # We cannot compute checksums for directories | 1408 | # We cannot compute checksums for directories |
| 1406 | if os.path.isdir(urldata.localpath): | 1409 | if os.path.isdir(urldata.localpath): |
| 1407 | return False | 1410 | return False |
