summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 4334b527f3..670afb1eed 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -782,7 +782,9 @@ class FetchMethod(object):
782 bb.utils.mkdirhier(newdir) 782 bb.utils.mkdirhier(newdir)
783 os.chdir(newdir) 783 os.chdir(newdir)
784 784
785 cmd = "PATH=\"%s\" %s" % (data.getVar('PATH', True), cmd) 785 path = data.getVar('PATH', True)
786 if path:
787 cmd = "PATH=\"%s\" %s" % (path, cmd)
786 bb.note("Unpacking %s to %s/" % (file, os.getcwd())) 788 bb.note("Unpacking %s to %s/" % (file, os.getcwd()))
787 ret = subprocess.call(cmd, preexec_fn=subprocess_setup, shell=True) 789 ret = subprocess.call(cmd, preexec_fn=subprocess_setup, shell=True)
788 790