[PATCH] Add buildarch option to buildinstall (#1087466)
Brian C. Lane
bcl at redhat.com
Tue May 6 18:25:35 UTC 2014
Pass --buildarch to buildinstall to override looking up the arch using
repoquery and the anaconda package in the repo.
---
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
More information about the anaconda-patches
mailing list