package_rpm.bbclass: fix and enhance the incremental rpm generation
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 21 Aug 2012 06:48:48 +0000 (14:48 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Aug 2012 11:15:31 +0000 (12:15 +0100)
commit2c6ff005046fe65eaf0ff155e6d1b883408e4633
tree9c04c6e264933cec2cd0f4d8015c974ce457c042
parent4645758d6749d0ee0387b0441f579cc8fff26866
package_rpm.bbclass: fix and enhance the incremental rpm generation

The incremental rpm generation usually broke when package_rpm.bbclass
changed, change its implementation to make it more stable:

* It depended on the previous and current saved manifest files in
  the past, it would break when the manifest changed. Now query the
  previous and current installed pkgs from rootfs/var/lib and
  rootfs/install/, this would be more reliable, the manifest's change
  would not affect it any more.

* Add explanations before package_install_internal_rpm to explain what
  does the function do.

* Remove an unwanted "awk '{print $1}'".

[YOCTO #2906]

(From OE-Core rev: 5d8ca498e09438bd91654fa8b8b2c970956d88e3)

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