diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-04 00:43:13 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 12:15:23 +0000 |
commit | b5a059ff2886a9097c6376d39fb1947a41a4799d (patch) | |
tree | be8e6c2ae69e3ce96211dd2d5ae5de61b8fa8845 /bitbake-dev/lib/bb/fetch/__init__.py | |
parent | aaf9b6aa5ff4acc6034c505514e02816abc1cd5d (diff) | |
download | poky-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-dev/lib/bb/fetch/__init__.py')
-rw-r--r-- | bitbake-dev/lib/bb/fetch/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake-dev/lib/bb/fetch/__init__.py b/bitbake-dev/lib/bb/fetch/__init__.py index 429822bfa9..b8a00107e2 100644 --- a/bitbake-dev/lib/bb/fetch/__init__.py +++ b/bitbake-dev/lib/bb/fetch/__init__.py | |||
@@ -553,8 +553,12 @@ class Fetch(object): | |||
553 | """ | 553 | """ |
554 | 554 | ||
555 | """ | 555 | """ |
556 | has_sortable_valid = hasattr(self, "_sortable_revision_valid") | ||
556 | has_sortable = hasattr(self, "_sortable_revision") | 557 | has_sortable = hasattr(self, "_sortable_revision") |
557 | if has_sortable: | 558 | |
559 | if has_sortable and not has_sortable_valid: | ||
560 | return self._sortable_revision(url, ud, d) | ||
561 | elif has_sortable and self._sortable_revision_valid(url, ud, d): | ||
558 | return self._sortable_revision(url, ud, d) | 562 | return self._sortable_revision(url, ud, d) |
559 | 563 | ||
560 | pd = persist_data.PersistData(d) | 564 | pd = persist_data.PersistData(d) |