From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 93-97-173-237.zone5.bethere.co.uk ([93.97.173.237] helo=tim.rpsys.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1TK7yT-0000D6-8F for openembedded-core@lists.openembedded.org; Fri, 05 Oct 2012 15:29:53 +0200 Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q95DGpvK016950 for ; Fri, 5 Oct 2012 14:16:51 +0100 Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13966-06 for ; Fri, 5 Oct 2012 14:16:47 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q95DGegO016944 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 5 Oct 2012 14:16:41 +0100 Message-ID: <1349443004.15658.23.camel@ted> From: Richard Purdie To: openembedded-core Date: Fri, 05 Oct 2012 14:16:44 +0100 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Subject: [PATCH] sstate: Normalise paths before comparing with the whitelist X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Oct 2012 13:29:53 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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):