summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2008-10-12 22:18:05 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2008-10-12 22:18:05 +0000
commit5a70204961ff309266c310d1b9836bc8f72bb1cf (patch)
treee3f0388ea526f5c42617b6ff631c66328999e768 /lib
parent65fbad91c93253fc808d09efd5701f6b443b0131 (diff)
downloadbitbake-5a70204961ff309266c310d1b9836bc8f72bb1cf.tar.gz
Allow to conditionally implement sortable revision in the fetcher
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch/__init__.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/bb/fetch/__init__.py b/lib/bb/fetch/__init__.py
index 8578dc77f..c9b589e04 100644
--- a/lib/bb/fetch/__init__.py
+++ b/lib/bb/fetch/__init__.py
@@ -515,8 +515,14 @@ class Fetch(object):
"""
"""
- if hasattr(self, "_sortable_revision"):
+ has_want_sortable = hasattr(self, "_want_sortable_revision")
+ has_sortable = hasattr(self, "_sortable_revision")
+
+ if not has_want_sortable and has_sortable:
+ return self._sortable_revision(url, ud, d)
+ elif has_want_sortable and self._want_sortable_revision(url, ud, d) and has_sortable:
return self._sortable_revision(url, ud, d)
+
pd = persist_data.PersistData(d)
key = self._revision_key(url, ud, d)