diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-03-29 15:44:09 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-31 10:10:29 +0100 |
commit | 0dae98329611f3f8ae395b5164d9b19c66c4ea60 (patch) | |
tree | aafac7da954a08bbdfa593f83981588ae6431476 | |
parent | caf1c9087161838903c0e9d2971cc8bfabfdebd0 (diff) | |
download | poky-0dae98329611f3f8ae395b5164d9b19c66c4ea60.tar.gz |
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]
(From OE-Core rev: 14283700f8ec9dcb29cbc00c92d76173f1601bf5)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | scripts/lib/compatlayer/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/lib/compatlayer/__init__.py b/scripts/lib/compatlayer/__init__.py index 58f94b778b..087ac14148 100644 --- a/scripts/lib/compatlayer/__init__.py +++ b/scripts/lib/compatlayer/__init__.py | |||
@@ -112,6 +112,7 @@ def detect_layers(layer_directories, no_auto): | |||
112 | layers = [] | 112 | layers = [] |
113 | 113 | ||
114 | for directory in layer_directories: | 114 | for directory in layer_directories: |
115 | directory = os.path.realpath(directory) | ||
115 | if directory[-1] == '/': | 116 | if directory[-1] == '/': |
116 | directory = directory[0:-1] | 117 | directory = directory[0:-1] |
117 | 118 | ||