]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: Fix exec_native_cmd() path
authorTom Zanussi <tom.zanussi@linux.intel.com>
Wed, 19 Feb 2014 20:53:36 +0000 (14:53 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Feb 2014 14:28:05 +0000 (14:28 +0000)
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>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
scripts/lib/mic/utils/oe/misc.py

index 6b01955a88df6a8aa171e277d7709dbeff4dd030..d65b77a7aae2e22e09b613ddec98d638d111005d 100644 (file)
@@ -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)