diff options
author | Ross Burton <ross.burton@intel.com> | 2017-09-07 10:24:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-07 11:47:41 +0100 |
commit | c45453d1f6bc7bcecd84f58e2f7d93d6bd1e8499 (patch) | |
tree | b4d2753f2d761ccf894335657eca8da2b696277e | |
parent | 2ab50074c1a6c56a8a178755de108447d7b7acaf (diff) | |
download | bitbake-contrib-c45453d1f6bc7bcecd84f58e2f7d93d6bd1e8499.tar.gz |
fetch2: add stub latest_versionstring to FetchMethod
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 3eb0e4d21..f70f1b515 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -1559,6 +1559,14 @@ class FetchMethod(object): key = self._revision_key(ud, d, name) return "%s-%s" % (key, d.getVar("PN") or "") + def latest_versionstring(self, ud, d): + """ + Compute the latest release name like "x.y.x" in "x.y.x+gitHASH" + by searching through the tags output of ls-remote, comparing + versions and returning the highest match as a (version, revision) pair. + """ + return ('', '') + class Fetch(object): def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None): if localonly and cache: |