diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-10-12 22:18:05 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2008-10-12 22:18:05 +0000 |
commit | 5a70204961ff309266c310d1b9836bc8f72bb1cf (patch) | |
tree | e3f0388ea526f5c42617b6ff631c66328999e768 /lib | |
parent | 65fbad91c93253fc808d09efd5701f6b443b0131 (diff) | |
download | bitbake-5a70204961ff309266c310d1b9836bc8f72bb1cf.tar.gz |
Allow to conditionally implement sortable revision in the fetcher
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/fetch/__init__.py | 8 |
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) |