diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/npm.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py index 9b2d9e1621..134bd35221 100644 --- a/bitbake/lib/bb/fetch2/npm.py +++ b/bitbake/lib/bb/fetch2/npm.py | |||
@@ -138,7 +138,12 @@ class Npm(FetchMethod): | |||
138 | workobj = json.load(datafile) | 138 | workobj = json.load(datafile) |
139 | dldir = "%s/%s" % (os.path.dirname(ud.localpath), ud.pkgname) | 139 | dldir = "%s/%s" % (os.path.dirname(ud.localpath), ud.pkgname) |
140 | 140 | ||
141 | self._unpackdep(ud, ud.pkgname, workobj, "%s/npmpkg" % destdir, dldir, d) | 141 | if 'subdir' in ud.parm: |
142 | unpackdir = '%s/%s' % (destdir, ud.parm.get('subdir')) | ||
143 | else: | ||
144 | unpackdir = '%s/npmpkg' % destdir | ||
145 | |||
146 | self._unpackdep(ud, ud.pkgname, workobj, unpackdir, dldir, d) | ||
142 | 147 | ||
143 | def _parse_view(self, output): | 148 | def _parse_view(self, output): |
144 | ''' | 149 | ''' |