]> code.ossystems Code Review - openembedded-core.git/commit
buildhistory: Fix do_package race issues
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 Nov 2021 13:14:35 +0000 (13:14 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 24 Nov 2021 09:55:05 +0000 (09:55 +0000)
commitb83823ce44e7531bbd2bfa62062c04147a11f724
treea4c31138c2233a60b585919ba2d4475cd36269a4
parent9febfe70507035fd75b0aeb108b1bbb6996f9b78
buildhistory: Fix do_package race issues

The buildhistory_list_pkg_files function uses data from do_package, not
do_packagedata. Usally the two are restored together but it may see
a half complete directory or other races issues depending on timing.

Rework the function so that it uses the correct task dependencies. This
should avoid races but means the data is only restored to buildhistory
if the do_package or do_package_setscene tasks are restored.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass