summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-09-07 10:24:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-09-11 17:19:37 +0100
commit384d97663190535c512f4de3e4bdf093d0924ef7 (patch)
tree609aa7e2e78f0eb06c9f6fe4b21647441810abb9 /bitbake
parent20d0282c6048fe11b303e538dbf9109ccb0c467d (diff)
downloadpoky-384d97663190535c512f4de3e4bdf093d0924ef7.tar.gz
bitbake: fetch2: add stub latest_versionstring to FetchMethod
(Bitbake rev: c45453d1f6bc7bcecd84f58e2f7d93d6bd1e8499) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 3eb0e4d211..f70f1b5157 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1559,6 +1559,14 @@ class FetchMethod(object):
1559 key = self._revision_key(ud, d, name) 1559 key = self._revision_key(ud, d, name)
1560 return "%s-%s" % (key, d.getVar("PN") or "") 1560 return "%s-%s" % (key, d.getVar("PN") or "")
1561 1561
1562 def latest_versionstring(self, ud, d):
1563 """
1564 Compute the latest release name like "x.y.x" in "x.y.x+gitHASH"
1565 by searching through the tags output of ls-remote, comparing
1566 versions and returning the highest match as a (version, revision) pair.
1567 """
1568 return ('', '')
1569
1562class Fetch(object): 1570class Fetch(object):
1563 def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None): 1571 def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None):
1564 if localonly and cache: 1572 if localonly and cache: