summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-05 13:12:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-05 16:18:26 +0100
commitab8d9817275c24314c74e7e9bb43c5465c52b4cb (patch)
treeeda6a105d41ed6f629418ad36014b6c4aa0d0560 /meta/classes/sstate.bbclass
parent7f4a8dd914e35c2eaaba7bd953273d10a94d85eb (diff)
downloadpoky-ab8d9817275c24314c74e7e9bb43c5465c52b4cb.tar.gz
sstate: Normalise paths before comparing with the whitelist
Without this, path components like // could break comparisions with the whitelist leading to warnings being displayed to the user unintentionally. (From OE-Core rev: d3c46ca56fab2f07bf16b61514f30765543a8747) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 03f083e5af..e820a2e38d 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -150,6 +150,7 @@ def sstate_install(ss, d):
150 match = [] 150 match = []
151 for f in sharedfiles: 151 for f in sharedfiles:
152 if os.path.exists(f): 152 if os.path.exists(f):
153 f = os.path.normpath(f)
153 realmatch = True 154 realmatch = True
154 for w in whitelist: 155 for w in whitelist:
155 if f.startswith(w): 156 if f.startswith(w):