From 2fa427ff26166cca94d2a634a744fb546c902f76 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 16 Apr 2015 00:34:36 +0200 Subject: [PATCH] pck-update: stricter checks on buildreqs with explicit arch --- plugins/pck-update.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/pck-update.in b/plugins/pck-update.in index 7906a59..69c90f2 100644 --- a/plugins/pck-update.in +++ b/plugins/pck-update.in @@ -1991,12 +1991,12 @@ build requirement found"": \`${NOTE}$f${NORM}' ""\ # remove duplicates buildreqs_to_install=( $(for f in ${buildreqs_to_install[@]}; do - if [ "${f/.*}" != "${f}" ]; then + if [ "${f/*.}" == "arm" -o "${f/*.}" == "x86_64" -o "${f/*.}" == "i586" ]; then # if arch specified convert e.g. package.i586 to package@i586 echo ${f/./@} - elif [ "${BUILD_ARCH}" == "x86_64" ]; then + elif [ "${BUILD_ARCH}" == "x86_64" -a "${target_cpu}" != "x86_64" ]; then # x86_64: specifying arch is necessary (FIXME: problems with .noarch) - echo $f@$target_cpu + echo $f@${target_cpu} else # classic behaviour echo $f