summaryrefslogtreecommitdiff
path: root/meta/classes/package_rpm.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r--meta/classes/package_rpm.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index cb3ceacbcb..b29d3edb2f 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -359,6 +359,9 @@ EOF
smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp
package_write_smart_config ${target_rootfs}
# Do the following configurations here, to avoid them being saved for field upgrade
+ if [ "x${NO_RECOMMENDATIONS}" = "x1" ]; then
+ smart --data-dir=$1/var/lib/smart config --set ignore-all-recommends=1
+ fi
for i in ${PACKAGE_EXCLUDE}; do
smart --data-dir=$1/var/lib/smart flag --set exclude-packages $i
done