Patchwork [1/1] package_rpm: fix up attemptonly code

login
register
mail settings
Submitter Saul Wold
Date Aug. 12, 2011, 12:09 a.m.
Message ID <49f7822562b925c4ab476bd9bd9f723e6902f6cd.1313107646.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/9685/
State New, archived
Headers show

Comments

Saul Wold - Aug. 12, 2011, 12:09 a.m.
[YOCTO #1366]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/classes/package_rpm.bbclass |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 59e8d48..5b76c5d 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -249,7 +249,14 @@  package_install_internal_rpm () {
 		echo "Adding attempt only packages..."
 		for pkg in ${package_attemptonly} ; do
 			echo "Processing $pkg..."
-			pkg_name=$(resolve_package_rpm $pkg ${confbase}.conf)
+
+			archvar=base_archs
+			ml_pkg=$(echo ${pkg} | sed "s,^${MLPREFIX}\(.*\),\1,")
+			if [ "${ml_pkg}" != "${pkg}" ]; then
+				archvar=ml_archs
+			fi
+
+			pkg_name=$(resolve_package_rpm ${confbase}-${archvar}.conf ${ml_pkg})
 			if [ -z "$pkg_name" ]; then
 				echo "Unable to find package $pkg!"
 				exit 1