summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/git.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-11-04 00:43:13 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-11-13 12:15:23 +0000
commitb5a059ff2886a9097c6376d39fb1947a41a4799d (patch)
treebe8e6c2ae69e3ce96211dd2d5ae5de61b8fa8845 /bitbake/lib/bb/fetch/git.py
parentaaf9b6aa5ff4acc6034c505514e02816abc1cd5d (diff)
downloadpoky-b5a059ff2886a9097c6376d39fb1947a41a4799d.tar.gz
fetch/__init__.py: Try and make the sortable_revision code mode readable
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch/git.py')
-rw-r--r--bitbake/lib/bb/fetch/git.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index c811937743..911c5e437f 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -145,12 +145,12 @@ class Git(Fetch):
145 def _build_revision(self, url, ud, d): 145 def _build_revision(self, url, ud, d):
146 return ud.tag 146 return ud.tag
147 147
148 def _want_sortable_revision(self, url, ud, d): 148 def _sortable_revision_valid(self, url, ud, d):
149 return bb.data.getVar("BB_GIT_CLONE_FOR_SRCREV", d, True) or False 149 return bb.data.getVar("BB_GIT_CLONE_FOR_SRCREV", d, True) or False
150 150
151 def _sortable_revision_disabled(self, url, ud, d): 151 def _sortable_revision(self, url, ud, d):
152 """ 152 """
153 This is only called when _want_sortable_revision called true 153 This is only called when _sortable_revision_valid called true
154 154
155 We will have to get the updated revision. 155 We will have to get the updated revision.
156 """ 156 """