Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package_rpm.bbclass: Fix no_recommendations and package_exclude
@ 2013-09-05 23:48 Mark Hatle
  0 siblings, 0 replies; only message in thread
From: Mark Hatle @ 2013-09-05 23:48 UTC (permalink / raw)
  To: openembedded-core; +Cc: yue.tao

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>
---
 meta/classes/package_rpm.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index cc77c5e..8ab42c4 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
-- 
1.8.1.2.545.g2f19ada



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-05 23:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 23:48 [PATCH] package_rpm.bbclass: Fix no_recommendations and package_exclude Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox