diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2')
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 4 | ||||
| -rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 000b49a500..1d6e4e0964 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
| @@ -770,7 +770,7 @@ def get_srcrev(d, method_name='sortable_revision'): | |||
| 770 | if urldata[u].method.supports_srcrev(): | 770 | if urldata[u].method.supports_srcrev(): |
| 771 | scms.append(u) | 771 | scms.append(u) |
| 772 | 772 | ||
| 773 | if len(scms) == 0: | 773 | if not scms: |
| 774 | raise FetchError("SRCREV was used yet no valid SCM was found in SRC_URI") | 774 | raise FetchError("SRCREV was used yet no valid SCM was found in SRC_URI") |
| 775 | 775 | ||
| 776 | if len(scms) == 1 and len(urldata[scms[0]].names) == 1: | 776 | if len(scms) == 1 and len(urldata[scms[0]].names) == 1: |
| @@ -1636,7 +1636,7 @@ class Fetch(object): | |||
| 1636 | if localonly and cache: | 1636 | if localonly and cache: |
| 1637 | raise Exception("bb.fetch2.Fetch.__init__: cannot set cache and localonly at same time") | 1637 | raise Exception("bb.fetch2.Fetch.__init__: cannot set cache and localonly at same time") |
| 1638 | 1638 | ||
| 1639 | if len(urls) == 0: | 1639 | if not urls: |
| 1640 | urls = d.getVar("SRC_URI").split() | 1640 | urls = d.getVar("SRC_URI").split() |
| 1641 | self.urls = urls | 1641 | self.urls = urls |
| 1642 | self.d = d | 1642 | self.d = d |
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index a7110a988d..c5c23d5260 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
| @@ -163,7 +163,7 @@ class GitSM(Git): | |||
| 163 | else: | 163 | else: |
| 164 | self.process_submodules(ud, ud.clonedir, need_update_submodule, d) | 164 | self.process_submodules(ud, ud.clonedir, need_update_submodule, d) |
| 165 | 165 | ||
| 166 | if len(need_update_list) > 0: | 166 | if need_update_list: |
| 167 | logger.debug('gitsm: Submodules requiring update: %s' % (' '.join(need_update_list))) | 167 | logger.debug('gitsm: Submodules requiring update: %s' % (' '.join(need_update_list))) |
| 168 | return True | 168 | return True |
| 169 | 169 | ||
