bitbake/fetch2: When unpacking, only use PATH variable if its set
PATCH 1/1 bitbake/fetch2: When unpacking, only use PATH variable if its set
Signed-off-by Richard Purdie <[email protected]>
---
bitbake/lib/bb/fetch2/__init__.py +3 -1
@@ -783,7 +783,9 @@ class FetchMethod(object): bb.utils.mkdirhier(newdir) os.chdir(newdir) - cmd = "PATH=\"%s\" %s" % (data.getVar('PATH', True), cmd) + path = data.getVar('PATH', True) + if path: + cmd = "PATH=\"%s\" %s" % (path, cmd) bb.note("Unpacking %s to %s/" % (file, os.getcwd())) ret = subprocess.call(cmd, preexec_fn=subprocess_setup, shell=True)