summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/npm.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/npm.py')
-rw-r--r--bitbake/lib/bb/fetch2/npm.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/npm.py b/bitbake/lib/bb/fetch2/npm.py
index 8a179a339a..e6d0598f5d 100644
--- a/bitbake/lib/bb/fetch2/npm.py
+++ b/bitbake/lib/bb/fetch2/npm.py
@@ -103,6 +103,7 @@ class NpmEnvironment(object):
103 """Run npm command in a controlled environment""" 103 """Run npm command in a controlled environment"""
104 with tempfile.TemporaryDirectory() as tmpdir: 104 with tempfile.TemporaryDirectory() as tmpdir:
105 d = bb.data.createCopy(self.d) 105 d = bb.data.createCopy(self.d)
106 d.setVar("PATH", d.getVar("PATH")) # PATH might contain $HOME - evaluate it before patching
106 d.setVar("HOME", tmpdir) 107 d.setVar("HOME", tmpdir)
107 108
108 if not workdir: 109 if not workdir: