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/fetch2/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/fetch2/git.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 87a35d97a3..f203c5abb1 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
| @@ -68,7 +68,7 @@ class Git(FetchMethod): | |||
| 68 | # | 68 | # |
| 69 | # Only enable _sortable revision if the key is set | 69 | # Only enable _sortable revision if the key is set |
| 70 | # | 70 | # |
| 71 | if bb.data.getVar("BB_GIT_CLONE_FOR_SRCREV", d, True): | 71 | if d.getVar("BB_GIT_CLONE_FOR_SRCREV", True): |
| 72 | self._sortable_buildindex = self._sortable_buildindex_disabled | 72 | self._sortable_buildindex = self._sortable_buildindex_disabled |
| 73 | def supports(self, url, ud, d): | 73 | def supports(self, url, ud, d): |
| 74 | """ | 74 | """ |
| @@ -146,7 +146,7 @@ class Git(FetchMethod): | |||
| 146 | def try_premirror(self, u, ud, d): | 146 | def try_premirror(self, u, ud, d): |
| 147 | # If we don't do this, updating an existing checkout with only premirrors | 147 | # If we don't do this, updating an existing checkout with only premirrors |
| 148 | # is not possible | 148 | # is not possible |
| 149 | if bb.data.getVar("BB_FETCH_PREMIRRORONLY", d, True) is not None: | 149 | if d.getVar("BB_FETCH_PREMIRRORONLY", True) is not None: |
| 150 | return True | 150 | return True |
| 151 | if os.path.exists(ud.clonedir): | 151 | if os.path.exists(ud.clonedir): |
| 152 | return False | 152 | return False |
