mirror of
https://git.yoctoproject.org/poky
synced 2026-07-16 03:47: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:
@@ -553,8 +553,12 @@ class Fetch(object):
|
||||
"""
|
||||
|
||||
"""
|
||||
has_sortable_valid = hasattr(self, "_sortable_revision_valid")
|
||||
has_sortable = hasattr(self, "_sortable_revision")
|
||||
if has_sortable:
|
||||
|
||||
if has_sortable and not has_sortable_valid:
|
||||
return self._sortable_revision(url, ud, d)
|
||||
elif has_sortable and self._sortable_revision_valid(url, ud, d):
|
||||
return self._sortable_revision(url, ud, d)
|
||||
|
||||
pd = persist_data.PersistData(d)
|
||||
|
||||
Reference in New Issue
Block a user