[OE-core] [PATCH 1/1] rootfs_rpm.bbclass: make complementary packages not attempt-only

Qi.Chen at windriver.com Qi.Chen at windriver.com
Tue Dec 17 08:54:22 UTC 2013


From: Chen Qi <Qi.Chen at windriver.com>

Installing complementary packages should not be attempt-only, otherwise,
errors would be hidden. For example, if we enable ptest distro feature,
and we add 'ptest-pkgs' to IMAGE_FEATRUES, then building a minimal image
would succeed without reporting any error. However, the systemd-ptest
is not installed because of lack of the perl package.

Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
---
 meta/classes/rootfs_rpm.bbclass |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass
index 1a0c225..9a88330 100644
--- a/meta/classes/rootfs_rpm.bbclass
+++ b/meta/classes/rootfs_rpm.bbclass
@@ -170,8 +170,8 @@ rpm_setup_smart_target_config() {
 
 rootfs_install_packages() {
 	# Note - we expect the variables not set here to already have been set
-	export INSTALL_PACKAGES_RPM=""
-	export INSTALL_PACKAGES_ATTEMPTONLY_RPM="`cat $1`"
+	export INSTALL_PACKAGES_RPM="`cat $1`"
+	export INSTALL_PACKAGES_ATTEMPTONLY_RPM=""
 	export INSTALL_PROVIDENAME_RPM=""
 	export INSTALL_TASK_RPM="rootfs_install_packages"
 	export INSTALL_COMPLEMENTARY_RPM="1"
-- 
1.7.9.5




More information about the Openembedded-core mailing list