From: Richard Purdie Date: Fri, 5 Oct 2012 13:12:15 +0000 (+0000) Subject: sstate: Normalise paths before comparing with the whitelist X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~39774 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3c46ca56fab2f07bf16b61514f30765543a8747;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 03f083e5afc..e820a2e38db 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):