[gnome-continuous-yocto/gnomeostree-3.28-rocko: 5389/8267] scripts/lib/compatlayer: detect_layers always use realpath's
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 5389/8267] scripts/lib/compatlayer: detect_layers always use realpath's
- Date: Sun, 17 Dec 2017 03:22:18 +0000 (UTC)
commit 0dae98329611f3f8ae395b5164d9b19c66c4ea60
Author: Aníbal Limón <anibal limon linux intel com>
Date: 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]
(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>
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 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]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]