summaryrefslogtreecommitdiffstats
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-10 15:24:11 +0100
commitf56a4774a9e5326eaf10a5a68b58fa4e910a87a2 (patch)
tree7c494bb265f2eef4e84506237c977160a12b31db
parent4a4cdae234a2110174cf4c216d7237acc4adaa81 (diff)
downloadpoky-f56a4774a9e5326eaf10a5a68b58fa4e910a87a2.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>
-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):