diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-04 18:25:13 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-07 11:03:00 +0100 |
| commit | c9da0e31f8470647847f34525f8fbeea4c817579 (patch) | |
| tree | 4f9f23a63d7f3ce31a421cdc135057c9fdc31040 | |
| parent | 2605ca19c54cfb285f139cf99a3b0aab2af1781f (diff) | |
| download | poky-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__.py | 4 |
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 | ||
