]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: Compare abspath of both B and S
authorOla x Nilsson <ola.x.nilsson@axis.com>
Tue, 30 May 2017 10:16:31 +0000 (12:16 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Jun 2017 22:43:27 +0000 (23:43 +0100)
commit061f2aab40fecbfe0dcb928baa95d6b3a6b45eed
tree570862f21711d92bd79352249d88005a2f9123f5
parent404e8e3661469175e1ea087ebfaf3a7867bf4df2
devtool: Compare abspath of both B and S

Either both or none of the paths must be passed through
os.path.abspath or things like 'A//B', 'A/./B/', and 'A/B/' in S will
cause unintentional mismatches even when B = "${S}".

Using os.path.abspath for both seems more likely to be correct as that
will also handle the case where ${B} != ${S} but the abspaths are
equal.

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/__init__.py