]> code.ossystems Code Review - openembedded-core.git/commit
classes/reproducible_build: Avoid dereferencing symlinks
authorJoshua Watt <jpewhacker@gmail.com>
Mon, 6 Aug 2018 15:25:09 +0000 (10:25 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Aug 2018 09:51:28 +0000 (10:51 +0100)
commitfae23c72288068f90e2f357a8abf1384850c02ed
treeb513fbe49c5b89e39c1450522571640d465cce67
parent990a9c944375146bb3f0208b30e8b7f50239cef5
classes/reproducible_build: Avoid dereferencing symlinks

Using os.path.getmtime() will dereference symbolic links in an attempt
to get the last modified time. This can cause errors if the target
doesn't exist, or worse map to some absolute build host path which would
make a build not reproducible.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/reproducible_build.bbclass