From: Richard Purdie Date: Fri, 4 May 2012 17:25:13 +0000 (+0100) Subject: bitbake/fetch2: When unpacking, only use PATH variable if its set X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ffec38675c0d78ee9fcd1d8f5a746d162145554e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake/fetch2: When unpacking, only use PATH variable if its set Signed-off-by: Richard Purdie --- diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 4334b527f33..670afb1eed3 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -782,7 +782,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)