summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-04 18:25:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-07 11:03:00 +0100
commitc9da0e31f8470647847f34525f8fbeea4c817579 (patch)
tree4f9f23a63d7f3ce31a421cdc135057c9fdc31040
parent2605ca19c54cfb285f139cf99a3b0aab2af1781f (diff)
downloadpoky-c9da0e31f8470647847f34525f8fbeea4c817579.tar.gz
bitbake/fetch2: When unpacking, only use PATH variable if its set
(Bitbake rev: ffec38675c0d78ee9fcd1d8f5a746d162145554e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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