Patchwork [1/2] wic: Fix exec_native_cmd() path

login
register
mail settings
Submitter tom.zanussi@linux.intel.com
Date Feb. 19, 2014, 8:53 p.m.
Message ID <722243f17b60f55830343be89dc2a80d0767d41d.1392842779.git.tom.zanussi@linux.intel.com>
Download mbox | patch
Permalink /patch/67011/
State Accepted
Commit 8e894d111de3cfe86bd6c6178fb619d94b1be115
Headers show

Comments

tom.zanussi@linux.intel.com - Feb. 19, 2014, 8:53 p.m.
The path exported in exec_native_cmd() includes bogus 'PATH=' which
means the native paths for all but the first will be ignored.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
 scripts/lib/mic/utils/oe/misc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/lib/mic/utils/oe/misc.py b/scripts/lib/mic/utils/oe/misc.py
index 6b01955..d65b77a 100644
--- a/scripts/lib/mic/utils/oe/misc.py
+++ b/scripts/lib/mic/utils/oe/misc.py
@@ -74,7 +74,7 @@  def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3):
     Always need to execute native commands as_shell
     """
     native_paths = \
-        "export PATH=%s/sbin:PATH=%s/usr/sbin:PATH=%s/usr/bin:$PATH" % \
+        "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin:$PATH" % \
         (native_sysroot, native_sysroot, native_sysroot)
     native_cmd_and_args = "%s;%s" % (native_paths, cmd_and_args)
     msger.debug("exec_native_cmd: %s" % cmd_and_args)