[OE-core] [PATCH 06/10] devtool: slight simplification of path splitting logic

Markus Lehtonen markus.lehtonen at linux.intel.com
Thu Jun 4 16:31:50 UTC 2015


Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
---
 scripts/lib/devtool/standard.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index dfa45e8..c860094 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -468,7 +468,7 @@ def modify(args, config, basepath, workspace):
     if s.startswith(workdir):
         # Handle if S is set to a subdirectory of the source
         if s != workdir and os.path.dirname(s) != workdir:
-            srcsubdir = os.sep.join(os.path.relpath(s, workdir).split(os.sep)[1:])
+            srcsubdir = os.path.relpath(s, workdir).split(os.sep, 1)[1]
             srctree = os.path.join(srctree, srcsubdir)
 
     appendpath = os.path.join(config.workspace_path, 'appends')
-- 
2.1.4




More information about the Openembedded-core mailing list