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-Tag: rev_ivi_2015_02_04~17369 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ec96c3cc5d1a0b6c7ba36470cc1a9bb8decdf468;p=scm%2Fbb%2Ftizen-distro.git bitbake/fetch2: When unpacking, only use PATH variable if its set (Bitbake rev: ffec38675c0d78ee9fcd1d8f5a746d162145554e) Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 4334b52..670afb1 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/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)