mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 20:27:58 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
02c96776de
commit
479fc7c226
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user