]> code.ossystems Code Review - openembedded-core.git/commit
staging: Fix overlapping file failures
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 20 Apr 2020 16:17:39 +0000 (17:17 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 26 Apr 2020 12:58:45 +0000 (13:58 +0100)
commit9d8e6daa866d2f19b2a6324072b984a866715426
treef90944791b214893a84f3c3320726aaefa39ffc9
parent24ca62b3c1fd404b67d549b29aeeacf913e6dc86
staging: Fix overlapping file failures

If there are different providers of a file and they are swiched when the
recipe isn't machine specific, we can get tracebacks due to the overlapping
files. The issue is that the previous provider isn't uninstalled since
the system can't tell whether some later task needs them.

By tracking which tasks we depend upon, the code can now choose to
uninstall more things since a later task can reinstall if/as needed.

The code here was to protect against code with two different tasks
running in parallel which is still protected agaisnt.

[YOCTO #13702]

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