summaryrefslogtreecommitdiffstats
path: root/meta/classes/rootfs_deb.bbclass
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-07-09 13:38:39 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-17 10:53:55 +0100
commit4913b614d88304247ced0a1b8c8b1e4e46d73bbb (patch)
tree815ddb8488fae9a22418f76d9b201e166bbf5167 /meta/classes/rootfs_deb.bbclass
parente242388c201fe10caac4104dfb02d029625d9368 (diff)
downloadpoky-4913b614d88304247ced0a1b8c8b1e4e46d73bbb.tar.gz
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>
Diffstat (limited to 'meta/classes/rootfs_deb.bbclass')
-rw-r--r--meta/classes/rootfs_deb.bbclass2
1 files changed, 1 insertions, 1 deletions
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() {
111} 111}
112 112
113rootfs_check_package_exists() { 113rootfs_check_package_exists() {
114 if [ `apt-cache showpkg $1 | wc -l` -gt 2 ]; then 114 if [ `apt-cache policy $1 | wc -l` -gt 4 ]; then
115 echo $1 115 echo $1
116 fi 116 fi
117} 117}