summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-09-05 18:48:42 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-06 23:01:50 +0100
commita04f4fe8db425f0ea87a67b5c72d61816b8d53e2 (patch)
tree849bba442251a3a3c34a05fc1ab44001c0daf1aa /meta
parent5871337da49f8cd1eaf53f7cd0aacc026dc7bcdb (diff)
downloadopenembedded-core-a04f4fe8db425f0ea87a67b5c72d61816b8d53e2.tar.gz
openembedded-core-a04f4fe8db425f0ea87a67b5c72d61816b8d53e2.tar.bz2
openembedded-core-a04f4fe8db425f0ea87a67b5c72d61816b8d53e2.zip
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> Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/package_rpm.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index cc77c5ea35..8ab42c441e 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -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