mirror of
https://git.yoctoproject.org/poky
synced 2026-03-17 04:39:40 +01:00
package_rpm.bbclass: Fix no_recommendations and package_exclude
When the code was refactored to address review comments, the wrong version
was sent to the community. Replace the $1 with ${target_rootfs}
Fix identified by: Yue Tao <yue.tao@windriver.com>
(From OE-Core rev: a04f4fe8db425f0ea87a67b5c72d61816b8d53e2)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
f24dda3de9
commit
12223c038c
@@ -360,10 +360,10 @@ EOF
|
||||
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
|
||||
smart --data-dir=${target_rootfs}/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
|
||||
smart --data-dir=${target_rootfs}/var/lib/smart flag --set exclude-packages $i
|
||||
done
|
||||
|
||||
# Optional debugging
|
||||
|
||||
Reference in New Issue
Block a user