summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/npm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py
index 3ff11e9c27..d44454cb2c 100644
--- a/bitbake/lib/bb/fetch2/npm.py
+++ b/bitbake/lib/bb/fetch2/npm.py
@@ -75,10 +75,10 @@ class Npm(FetchMethod):
75 # TODO: find a way to get an sha1/sha256 manifest of pkg & all deps 75 # TODO: find a way to get an sha1/sha256 manifest of pkg & all deps
76 ud.pkgname = ud.parm.get("name", None) 76 ud.pkgname = ud.parm.get("name", None)
77 if not ud.pkgname: 77 if not ud.pkgname:
78 raise ParameterError("NPM fetcher requires a name parameter") 78 raise ParameterError("NPM fetcher requires a name parameter", ud.url)
79 ud.version = ud.parm.get("version", None) 79 ud.version = ud.parm.get("version", None)
80 if not ud.version: 80 if not ud.version:
81 raise ParameterError("NPM fetcher requires a version parameter") 81 raise ParameterError("NPM fetcher requires a version parameter", ud.url)
82 ud.bbnpmmanifest = "%s-%s.deps.json" % (ud.pkgname, ud.version) 82 ud.bbnpmmanifest = "%s-%s.deps.json" % (ud.pkgname, ud.version)
83 ud.registry = "http://%s" % ud.basename 83 ud.registry = "http://%s" % ud.basename
84 prefixdir = "npm/%s" % ud.pkgname 84 prefixdir = "npm/%s" % ud.pkgname