The new npm fetcher allows the 'latest' keyword to be used to download the latest version on the registry. But the keyword must be replace as soon as the version is determined to have a stable generated recipe.
Signed-off-by: Jean-Marie LEMETAYER <jean-marie.lemeta...@savoirfairelinux.com> --- scripts/lib/recipetool/create.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 7754668559..b4ab1117b8 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -831,6 +831,8 @@ def create_recipe(args): elif line.startswith('SRC_URI = '): if realpv and not pv_srcpv: line = line.replace(realpv, '${PV}') + if scheme == 'npm': + line = line.replace('version=latest', 'version=${PV}') elif line.startswith('PV = '): if realpv: # Replace the first part of the PV value -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core