From 4913b614d88304247ced0a1b8c8b1e4e46d73bbb Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Mon, 9 Jul 2012 13:38:39 +0100 Subject: 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/classes/rootfs_deb.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes/rootfs_deb.bbclass') diff --git a/meta/classes/rootfs_deb.bbclass b/meta/classes/rootfs_deb.bbclass index 4ea71daedc..67871a9087 100644 --- a/meta/classes/rootfs_deb.bbclass +++ b/meta/classes/rootfs_deb.bbclass @@ -111,7 +111,7 @@ list_package_recommends() { } rootfs_check_package_exists() { - if [ `apt-cache showpkg $1 | wc -l` -gt 2 ]; then + if [ `apt-cache policy $1 | wc -l` -gt 4 ]; then echo $1 fi } -- cgit v1.2.3-54-g00ecf