]> code.ossystems Code Review - openembedded-core.git/commit
staging: Ensure dependencies are removed before being added
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 27 Aug 2017 08:21:10 +0000 (09:21 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Sep 2017 21:15:51 +0000 (22:15 +0100)
commit970d4df7336e5102ac61e66689e977fb2e41a1aa
tree635bf70393c6f2b86d993044ab2ed209be559c17
parent67438ac91a40429affc952ad1d7e92c763f52bab
staging: Ensure dependencies are removed before being added

Currently items are added to the sysroot, the obsolete items are removed. If
a change such as pkgconfig -> pkgconf is made, this leads to conflicts of
overlapping files in the sysroot.

In order to better support this, handle removing items before adding them.
This requires some minor refactoring to construct the installed list
before the main function loop, otherwise there are no changes in this
patch other than reordering the operations.

(From OE-Core rev: add4f107c151d32d9ea914bb0b93c3d3c17c776c)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5b45fe40db81292dd6bb57b210d1e4ba32e65e9e)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/staging.bbclass