]> code.ossystems Code Review - openembedded-core.git/commit
package_rpm.bbclass: fix incremental rpm generation
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 21 Jun 2012 02:30:00 +0000 (10:30 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Jun 2012 11:43:05 +0000 (12:43 +0100)
commit7d702c637b84c028c9763246b3ac355d10083ea3
treeee3d9beaf177cbe77547b3bcccbd16924b3d21e1
parentf7caea892cf66236bae854dcbaffec9d4a2d09a2
package_rpm.bbclass: fix incremental rpm generation

Fixes:
* Remove the "echo '# Remove manifest padding....' > remove.manifest,
  The remove.manifest would be used via "rpm -e `remove.manifest`",
  there would be error since there is no pkg called: Remove, manifest or
  padding

* The incremental.manifest can't be null when used by rpm, so check it
  before use.

* The rpm needs:
--root "${target_rootfs}/install"
  when use:
-D "_dbpath ${target_rootfs}/install"
  Otherwise it would use the ${target_rootfs} as the root, and use the
  ${target_rootfs}/var/lib/rpm as the dbpath, this is OK in a fresh
  installation, but there would be errors when increment rpm generation.

[YOCTO #2617]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_rpm.bbclass