summaryrefslogtreecommitdiffstats
path: root/meta/classes
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:04:48 +0100
commit12223c038c7cc82d352b542f715c27ad330e87f2 (patch)
treeda4b4ad29cea68e547d9dd36e13ef2983c9bacf3 /meta/classes
parentf24dda3de90696c5dc33170bcdaa83137cafff9d (diff)
downloadpoky-12223c038c7cc82d352b542f715c27ad330e87f2.tar.gz
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>
Diffstat (limited to 'meta/classes')
-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
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 361 # Do the following configurations here, to avoid them being saved for field upgrade
362 if [ "x${NO_RECOMMENDATIONS}" = "x1" ]; then 362 if [ "x${NO_RECOMMENDATIONS}" = "x1" ]; then
363 smart --data-dir=$1/var/lib/smart config --set ignore-all-recommends=1 363 smart --data-dir=${target_rootfs}/var/lib/smart config --set ignore-all-recommends=1
364 fi 364 fi
365 for i in ${PACKAGE_EXCLUDE}; do 365 for i in ${PACKAGE_EXCLUDE}; do
366 smart --data-dir=$1/var/lib/smart flag --set exclude-packages $i 366 smart --data-dir=${target_rootfs}/var/lib/smart flag --set exclude-packages $i
367 done 367 done
368 368
369 # Optional debugging 369 # Optional debugging