From patchwork Fri Oct 5 13:16:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: sstate: Normalise paths before comparing with the whitelist Date: Fri, 05 Oct 2012 13:16:44 -0000 From: Richard Purdie X-Patchwork-Id: 37815 Message-Id: <1349443004.15658.23.camel@ted> To: openembedded-core Without this, path components like // could break comparisons with the whitelist leading to warnings being displayed to the user unintentionally. Signed-off-by: Richard Purdie --- 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):