summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/rootfs_rpm.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 5fd45d758c..966b074181 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -174,7 +174,9 @@ get_package_filename() {
174list_package_depends() { 174list_package_depends() {
175 pkglist=`list_installed_packages` 175 pkglist=`list_installed_packages`
176 176
177 for req in `${RPM_QUERY_CMD} -q --qf "[%{REQUIRES}\n]" $1`; do 177 # REQUIRE* lists "soft" requirements (which we know as recommends and RPM refers to
178 # as "suggests") so filter these out with the help of awk
179 for req in `${RPM_QUERY_CMD} -q --qf "[%{REQUIRENAME} %{REQUIREFLAGS}\n]" $1 | awk '{ if( and($2, 0x80000) == 0) print $1 }'`; do
178 if echo "$req" | grep -q "^rpmlib" ; then continue ; fi 180 if echo "$req" | grep -q "^rpmlib" ; then continue ; fi
179 181
180 realpkg="" 182 realpkg=""
@@ -193,7 +195,7 @@ list_package_depends() {
193} 195}
194 196
195list_package_recommends() { 197list_package_recommends() {
196 : 198 ${RPM_QUERY_CMD} -q --suggests $1
197} 199}
198 200
199install_all_locales() { 201install_all_locales() {