diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/npm.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py index b5f148ca03..730c346a93 100644 --- a/bitbake/lib/bb/fetch2/npm.py +++ b/bitbake/lib/bb/fetch2/npm.py | |||
@@ -195,9 +195,11 @@ class Npm(FetchMethod): | |||
195 | outputurl = pdata['dist']['tarball'] | 195 | outputurl = pdata['dist']['tarball'] |
196 | data[pkg] = {} | 196 | data[pkg] = {} |
197 | data[pkg]['tgz'] = os.path.basename(outputurl) | 197 | data[pkg]['tgz'] = os.path.basename(outputurl) |
198 | if not outputurl in fetchedlist: | 198 | if outputurl in fetchedlist: |
199 | self._runwget(ud, d, "%s --directory-prefix=%s %s" % (self.basecmd, ud.prefixdir, outputurl), False) | 199 | return |
200 | fetchedlist.append(outputurl) | 200 | |
201 | self._runwget(ud, d, "%s --directory-prefix=%s %s" % (self.basecmd, ud.prefixdir, outputurl), False) | ||
202 | fetchedlist.append(outputurl) | ||
201 | 203 | ||
202 | dependencies = pdata.get('dependencies', {}) | 204 | dependencies = pdata.get('dependencies', {}) |
203 | optionalDependencies = pdata.get('optionalDependencies', {}) | 205 | optionalDependencies = pdata.get('optionalDependencies', {}) |