diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-25 14:57:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-27 10:35:30 +0000 |
commit | 4cd96710785eb05abeff1f281878655118d4a7dd (patch) | |
tree | f2e15210fa7057df398c6e20ecc51f1d747a12ab /bitbake/lib/bb/fetch/git.py | |
parent | 0a434ac10158e2011d41a1189e65e9474b1672be (diff) | |
download | poky-4cd96710785eb05abeff1f281878655118d4a7dd.tar.gz |
bitbake: Update users of getVar/setVar to use the data store functions directly
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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) |