aboutsummaryrefslogtreecommitdiffstats
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 14:51:06 +0100
commitd3c46ca56fab2f07bf16b61514f30765543a8747 (patch)
treeb0b0160c996ac359dcc7ec2613259a6b11cf0775
parent51df11c5747f69b4112121df78fc1e10644d390a (diff)
downloadopenembedded-core-contrib-d3c46ca56fab2f07bf16b61514f30765543a8747.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. 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):
match = []
for f in sharedfiles:
if os.path.exists(f):
+ f = os.path.normpath(f)
realmatch = True
for w in whitelist:
if f.startswith(w):