]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_rpm: combine normal and multilib solution manifest together
authorDongxiao Xu <dongxiao.xu@intel.com>
Wed, 28 Sep 2011 02:24:13 +0000 (10:24 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Sep 2011 10:47:23 +0000 (11:47 +0100)
When RPM does the real install, if the first manifest file is empty, the
installation will stop without handling the second manifest file.

Merge the two manifest files together to fix this issue.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
meta/classes/package_rpm.bbclass

index 775d525033880c16e162564d01c2b1963e5398c2..d32784125068146dd157ea4a812a5fb80525d841 100644 (file)
@@ -395,6 +395,8 @@ package_install_internal_rpm () {
                -D "__dbi_txn create nofsync private" \
                | grep -i 'Packageorigin' | cut -d : -f 2 > ${target_rootfs}/install/install_multilib_solution.manifest
 
+       cat ${target_rootfs}/install/install_solution.manifest > ${target_rootfs}/install/total_solution.manifest
+       cat ${target_rootfs}/install/install_multilib_solution.manifest >> ${target_rootfs}/install/total_solution.manifest
 
        # Attempt install
        ${RPM} --root ${target_rootfs} \
@@ -403,8 +405,7 @@ package_install_internal_rpm () {
                -D "_dbpath ${rpmlibdir}" \
                --noscripts --notriggers --noparentdirs --nolinktos --replacepkgs \
                -D "__dbi_txn create nofsync private" \
-               -Uhv ${target_rootfs}/install/install_solution.manifest \
-               ${target_rootfs}/install/install_multilib_solution.manifest
+               -Uhv ${target_rootfs}/install/total_solution.manifest
 }
 
 python write_specfile () {