diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2013-08-07 11:53:37 -0500 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-08-22 09:15:33 -0700 |
commit | 238c46c03d0d9c35523c78b94bfebb57904bac5a (patch) | |
tree | d8dc86ad7090416f4768edb286f5ec402efd257c /meta/classes/package_rpm.bbclass | |
parent | 87660d636c2ebe76cd9dff2a334f135def9a0cf3 (diff) | |
download | openembedded-core-238c46c03d0d9c35523c78b94bfebb57904bac5a.tar.gz openembedded-core-238c46c03d0d9c35523c78b94bfebb57904bac5a.tar.bz2 openembedded-core-238c46c03d0d9c35523c78b94bfebb57904bac5a.zip |
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.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/package_rpm.bbclass')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 5 |
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 smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._var=${localstatedir} 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 + for i in ${PACKAGE_EXCLUDE}; do + smart --data-dir=$1/var/lib/smart flag --set exclude-packages $i + done + # Optional debugging #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-level=debug #smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-log-file=/tmp/smart-debug-logfile |