On Tue, May 06, 2014 at 11:25:35AM -0700, Brian C. Lane wrote:
Pass --buildarch to buildinstall to override looking up the arch
using
repoquery and the anaconda package in the repo.
Looks ok to me, once rel-eng verifies this works.
---
scripts/buildinstall | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/buildinstall b/scripts/buildinstall
index ae28ccb..97ba9fa 100755
--- a/scripts/buildinstall
+++ b/scripts/buildinstall
@@ -34,6 +34,7 @@ usage() {
CWD="$(pwd)"
PRODUCTPATH="anaconda"
+BUILDARCH=""
while [ $# -gt 0 ]; do
case $1 in
@@ -92,6 +93,10 @@ while [ $# -gt 0 ]; do
MIRRORLIST="$MIRRORLIST $2"
shift; shift
;;
+ --buildarch)
+ BUILDARCH=$2
+ shift; shift;
+ ;;
*)
if [ -z "$REPO" ]; then
@@ -200,7 +205,9 @@ if [ "$LOCALSCRIPTS" = "yes" ]; then
BUILDINSTALL="$CWD/buildinstall"
else
pushd $BUILDINSTDIR
- BUILDARCH=`repoquery -c $yumconf --qf "%{ARCH}\n" anaconda`
+ if [ -z "$BUILDARCH" ]; then
+ BUILDARCH=`repoquery -c $yumconf --qf "%{ARCH}\n" anaconda`
+ fi
# lets use rpmutils to make sure we have the canonical basearch
# BUILDARCH != BASEARCH (e.g. i586 != i386, sparcv9 != sparc)
BASEARCH=`python -c "import rpmUtils.arch; \
--
1.9.0
_______________________________________________
anaconda-patches mailing list
anaconda-patches(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches