classes/rootfs_deb: use more reliable check for package existence
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 9 Jul 2012 12:38:39 +0000 (13:38 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Jul 2012 09:53:55 +0000 (10:53 +0100)
commitb8522d1e2721f3aeaa483953711fda091a1e1036
treee69415246df0e2bc0c8b43890be8422d86af219c
parentf680969faf9e67e24ff0d81c70ad3aa8978ab398
classes/rootfs_deb: use more reliable check for package existence

It turns out "apt-cache showpkg" does return some information when a
package does not exist but another package recommends it, which can
occur for empty *-dev packages; so use "apt-cache policy" with a
different line count instead.

(From OE-Core rev: ac62761a9cacdfd0225d2db5a75584e6c85469a8)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/rootfs_deb.bbclass