]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/lib/compatlayer: detect_layers always use realpath's
authorAníbal Limón <anibal.limon@linux.intel.com>
Wed, 29 Mar 2017 21:44:09 +0000 (15:44 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 30 Mar 2017 09:14:14 +0000 (10:14 +0100)
If you are using relative paths and change to other folder for
execution it will fail, so use realpaths always.

[YOCTO #11164]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/compatlayer/__init__.py

index 58f94b778b1bf177c918820dcfbf1c70dc6a5e81..087ac141482542728fd92193cb198225c597c924 100644 (file)
@@ -112,6 +112,7 @@ def detect_layers(layer_directories, no_auto):
     layers = []
 
     for directory in layer_directories:
+        directory = os.path.realpath(directory)
         if directory[-1] == '/':
             directory = directory[0:-1]