]> code.ossystems Code Review - openembedded-core.git/commitdiff
sstate: Normalise paths before comparing with the whitelist
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Oct 2012 13:12:15 +0000 (13:12 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Oct 2012 13:51:06 +0000 (14:51 +0100)
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>
meta/classes/sstate.bbclass

index 03f083e5afc8c1c6fc5b1be0b4e79b79c02c776b..e820a2e38dba85c1ad48dd21eeda5b4b2b4c9361 100644 (file)
@@ -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):