summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-08-07 11:53:37 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-22 18:29:59 +0100
commit479fc7c2265ec38277d1c623a201a0f2ec7acda8 (patch)
treea20bf4a62c422a6cb478ac47b623eba703630098 /meta/classes
parent02c96776de37e8507351f0162a76b082c0ed183c (diff)
downloadpoky-479fc7c2265ec38277d1c623a201a0f2ec7acda8.tar.gz
package_rpm.bbclass: Add support for PACKAGE_EXCLUDE to RPM installs
Using the new smart exclude mechanism an error will be generated in the excluded package is required for the image to be generated. (From OE-Core rev: 238c46c03d0d9c35523c78b94bfebb57904bac5a) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 53377a4e7f..cb3ceacbcb 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -358,6 +358,11 @@ EOF
358 smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._var=${localstatedir} 358 smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._var=${localstatedir}
359 smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp 359 smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp
360 package_write_smart_config ${target_rootfs} 360 package_write_smart_config ${target_rootfs}
361 # Do the following configurations here, to avoid them being saved for field upgrade
362 for i in ${PACKAGE_EXCLUDE}; do
363 smart --data-dir=$1/var/lib/smart flag --set exclude-packages $i
364 done
365
361 # Optional debugging 366 # Optional debugging
362 #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-level=debug 367 #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-level=debug
363 #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-file=/tmp/smart-debug-logfile 368 #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-file=/tmp/smart-debug-logfile