[oe-commits] [openembedded-core] 04/08: scripts/lib/compatlayer: detect_layers always use realpath's

git at git.openembedded.org git at git.openembedded.org
Thu Mar 30 09:43:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 14283700f8ec9dcb29cbc00c92d76173f1601bf5
Author: Aníbal Limón <anibal.limon at linux.intel.com>
AuthorDate: Wed Mar 29 15:44:09 2017 -0600

    scripts/lib/compatlayer: detect_layers always use realpath's
    
    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 at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/lib/compatlayer/__init__.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/lib/compatlayer/__init__.py b/scripts/lib/compatlayer/__init__.py
index 58f94b7..087ac14 100644
--- a/scripts/lib/compatlayer/__init__.py
+++ b/scripts/lib/compatlayer/__init__.py
@@ -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]
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list