1
0
mirror of https://git.yoctoproject.org/poky synced 2026-07-15 15:37:03 +00:00

fetch/__init__.py: Try and make the sortable_revision code mode readable

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2009-11-04 00:43:13 +00:00
parent aaf9b6aa5f
commit b5a059ff28
4 changed files with 16 additions and 8 deletions
+3 -3
View File
@@ -145,12 +145,12 @@ class Git(Fetch):
def _build_revision(self, url, ud, d):
return ud.tag
def _want_sortable_revision(self, url, ud, d):
def _sortable_revision_valid(self, url, ud, d):
return bb.data.getVar("BB_GIT_CLONE_FOR_SRCREV", d, True) or False
def _sortable_revision_disabled(self, url, ud, d):
def _sortable_revision(self, url, ud, d):
"""
This is only called when _want_sortable_revision called true
This is only called when _sortable_revision_valid called true
We will have to get the updated revision.
"""