[oe-commits] Richard Purdie : sstate: Normalise paths before comparing with the whitelist
git at git.openembedded.org
git at git.openembedded.org
Fri Oct 5 15:26:53 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: d3c46ca56fab2f07bf16b61514f30765543a8747
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=d3c46ca56fab2f07bf16b61514f30765543a8747
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date: Fri Oct 5 13:12:15 2012 +0000
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 at linuxfoundation.org>
---
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 03f083e..e820a2e 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):
More information about the Openembedded-commits
mailing list