From 4cd96710785eb05abeff1f281878655118d4a7dd Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 25 Nov 2011 14:57:53 +0000 Subject: bitbake: Update users of getVar/setVar to use the data store functions directly Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/git.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bitbake/lib/bb/fetch/git.py') 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): # # Only enable _sortable revision if the key is set # - if bb.data.getVar("BB_GIT_CLONE_FOR_SRCREV", d, True): + if d.getVar("BB_GIT_CLONE_FOR_SRCREV", True): self._sortable_buildindex = self._sortable_buildindex_disabled def supports(self, url, ud, d): """ @@ -220,7 +220,7 @@ class Git(Fetch): def generate_revision_key(self, url, ud, d, branch=False): key = self._revision_key(url, ud, d, branch) - return "%s-%s" % (key, bb.data.getVar("PN", d, True) or "") + return "%s-%s" % (key, d.getVar("PN", True) or "") def _latest_revision(self, url, ud, d): """ @@ -276,7 +276,7 @@ class Git(Fetch): del localcounts[oldkey + '_rev'] localcounts[key + '_rev'] = last_rev - uselocalcount = bb.data.getVar("BB_LOCALCOUNT_OVERRIDE", d, True) or False + uselocalcount = d.getVar("BB_LOCALCOUNT_OVERRIDE", True) or False count = None if uselocalcount: count = Fetch.localcount_internal_helper(ud, d) -- cgit v1.2.3-54-g00ecf