]> code.ossystems Code Review - openembedded-core.git/commit
toaster.bbclass: only scan files-in-image.txt if it exists
authorElliot Smith <elliot.smith@intel.com>
Tue, 12 Jul 2016 22:54:28 +0000 (15:54 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jul 2016 08:03:28 +0000 (09:03 +0100)
commit8b369cdd73ab17cdf834a591b97b25840caeb740
treedaa45d27cbdcac238658f40cd7268eff741a5195
parent67ebb5406c0fcdd1b28bf446249aa6fe34a741a8
toaster.bbclass: only scan files-in-image.txt if it exists

We can reach the method in toaster.bbclass which tries to read from
the files-in-image.txt file via a build which doesn't create that
file (e.g. "bitbake core-image-minimal -c rootfs"). This causes
the build to fail with an exception.

Check that this file exists before trying to read from it.

[YOCTO #9784]

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: bavery <brian.avery@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toaster.bbclass