diff options
Diffstat (limited to 'bitbake/lib/bb/fetch/git.py')
| -rw-r--r-- | bitbake/lib/bb/fetch/git.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index 49c1cfe8f9..7160919d5a 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py | |||
| @@ -34,7 +34,7 @@ class Git(Fetch): | |||
| 34 | # | 34 | # |
| 35 | # Only enable _sortable revision if the key is set | 35 | # Only enable _sortable revision if the key is set |
| 36 | # | 36 | # |
| 37 | if bb.data.getVar("BB_GIT_CLONE_FOR_SRCREV", d, True): | 37 | if d.getVar("BB_GIT_CLONE_FOR_SRCREV", True): |
| 38 | self._sortable_buildindex = self._sortable_buildindex_disabled | 38 | self._sortable_buildindex = self._sortable_buildindex_disabled |
| 39 | def supports(self, url, ud, d): | 39 | def supports(self, url, ud, d): |
| 40 | """ | 40 | """ |
| @@ -220,7 +220,7 @@ class Git(Fetch): | |||
| 220 | 220 | ||
| 221 | def generate_revision_key(self, url, ud, d, branch=False): | 221 | def generate_revision_key(self, url, ud, d, branch=False): |
| 222 | key = self._revision_key(url, ud, d, branch) | 222 | key = self._revision_key(url, ud, d, branch) |
| 223 | return "%s-%s" % (key, bb.data.getVar("PN", d, True) or "") | 223 | return "%s-%s" % (key, d.getVar("PN", True) or "") |
| 224 | 224 | ||
| 225 | def _latest_revision(self, url, ud, d): | 225 | def _latest_revision(self, url, ud, d): |
| 226 | """ | 226 | """ |
| @@ -276,7 +276,7 @@ class Git(Fetch): | |||
| 276 | del localcounts[oldkey + '_rev'] | 276 | del localcounts[oldkey + '_rev'] |
| 277 | localcounts[key + '_rev'] = last_rev | 277 | localcounts[key + '_rev'] = last_rev |
| 278 | 278 | ||
| 279 | uselocalcount = bb.data.getVar("BB_LOCALCOUNT_OVERRIDE", d, True) or False | 279 | uselocalcount = d.getVar("BB_LOCALCOUNT_OVERRIDE", True) or False |
| 280 | count = None | 280 | count = None |
| 281 | if uselocalcount: | 281 | if uselocalcount: |
| 282 | count = Fetch.localcount_internal_helper(ud, d) | 282 | count = Fetch.localcount_internal_helper(ud, d) |
