diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2012-09-07 17:05:44 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-12 15:13:35 +0100 |
commit | 03109ba97d83185d11c7f049671efcb28f188e77 (patch) | |
tree | f4dabe9360c3e0d5c95e81bdb387cb44a98541d3 /meta | |
parent | a6359e9710c562bb7c6f885aa866121b7524c6c8 (diff) | |
download | poky-03109ba97d83185d11c7f049671efcb28f188e77.tar.gz |
package_rpm.bbclass: Avoid unnecessary installs in complementary pass
When called with the complementary install option, the first step is to
backup the install manifest so that we can avoid installing items previously
installed. However, this backup process skipped the initial_install portion
of the manifest, causing early install items like libc6, bash, and base-files
to be installed a second time.
Fix this by cating the files to original_solution. This is done as an append to
allow multiple calls to package_install_internal_rpm to work.
(From OE-Core rev: af9fd7566a5de4716a202922f5eabb13a412f2fb)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 5f0e1d01a8..61f0117216 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass | |||
@@ -313,7 +313,14 @@ package_install_internal_rpm () { | |||
313 | done | 313 | done |
314 | fi | 314 | fi |
315 | else | 315 | else |
316 | mv ${target_rootfs}/install/total_solution.manifest ${target_rootfs}/install/original_solution.manifest | 316 | # We may run through the complementary installs multiple times. For each time |
317 | # we should add the previous solution manifest to the full "original" set to | ||
318 | # avoid duplicate install steps. | ||
319 | echo "Update original solution..." | ||
320 | cat ${target_rootfs}/install/initial_solution.manifest >> ${target_rootfs}/install/original_solution.manifest | ||
321 | cat ${target_rootfs}/install/total_solution.manifest >> ${target_rootfs}/install/original_solution.manifest | ||
322 | rm ${target_rootfs}/install/initial_solution.manifest | ||
323 | rm ${target_rootfs}/install/total_solution.manifest | ||
317 | fi | 324 | fi |
318 | 325 | ||
319 | # Setup manifest of packages to install... | 326 | # Setup manifest of packages to install... |