diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-05 13:12:15 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-05 14:51:06 +0100 |
commit | d3c46ca56fab2f07bf16b61514f30765543a8747 (patch) | |
tree | b0b0160c996ac359dcc7ec2613259a6b11cf0775 | |
parent | 51df11c5747f69b4112121df78fc1e10644d390a (diff) | |
download | openembedded-core-d3c46ca56fab2f07bf16b61514f30765543a8747.tar.gz openembedded-core-d3c46ca56fab2f07bf16b61514f30765543a8747.tar.bz2 openembedded-core-d3c46ca56fab2f07bf16b61514f30765543a8747.zip |
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.bbclass | 1 |
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): |