[OE-core] [OE-CORE][PATCH] scripts/lib/recipetool/create_npm.py: Fix npm uri_replace
Davis, Michael
michael.davis at essvote.com
Fri May 19 14:19:38 UTC 2017
Currently bitbakes uri_replace compares "npm://*/*" to
"npm://registry.npmjs.org". The lack of the second / causes this to always fail.
This results in things like mirror tarballs not functioning.
This patch adds in a / to the link generated by npm://registry.npmjs.org.
Signed-off-by: Michael Davis <michael.davis at essvote.com>
---
scripts/lib/recipetool/create_npm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/lib/recipetool/create_npm.py b/scripts/lib/recipetool/create_npm.py
index cb8f338..b54f539 100644
--- a/scripts/lib/recipetool/create_npm.py
+++ b/scripts/lib/recipetool/create_npm.py
@@ -126,7 +126,7 @@ class NpmRecipeHandler(RecipeHandler):
for dep, depdata in deplist.items():
version = depdata.get('version', None)
if version:
- url = 'npm://registry.npmjs.org;name=%s;version=%s;subdir=node_modules/%s' % (dep, version, dep)
+ url = 'npm://registry.npmjs.org/;name=%s;version=%s;subdir=node_modules/%s' % (dep, version, dep)
scriptutils.fetch_uri(d, url, srctree)
src_uri.append(url)
changed = True
--
2.9.4
More information about the Openembedded-core
mailing list