mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
20d0282c60
commit
384d976631
@@ -1559,6 +1559,14 @@ class FetchMethod(object):
|
|||||||
key = self._revision_key(ud, d, name)
|
key = self._revision_key(ud, d, name)
|
||||||
return "%s-%s" % (key, d.getVar("PN") or "")
|
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):
|
class Fetch(object):
|
||||||
def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None):
|
def __init__(self, urls, d, cache = True, localonly = False, connection_cache = None):
|
||||||
if localonly and cache:
|
if localonly and cache:
|
||||||
|
|||||||
Reference in New Issue
Block a user