[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] make a call to rpmutils to get the basearch works on all arches that dont have anaconda built on the basearch
- From: Dennis Gilmore <dennis ausil us>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] make a call to rpmutils to get the basearch works on all arches that dont have anaconda built on the basearch
- Date: Tue, 15 Sep 2009 14:40:37 -0500
---
scripts/buildinstall | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/scripts/buildinstall b/scripts/buildinstall
index 34f5904..9043eef 100755
--- a/scripts/buildinstall
+++ b/scripts/buildinstall
@@ -191,9 +191,10 @@ if [ "$LOCALSCRIPTS" = "yes" ]; then
else
pushd $BUILDINSTDIR
BUILDARCH=`repoquery -c $yumconf --qf "%{ARCH}\n" anaconda`
- # This is a crappy implementation but x86 is the only place we currently see
- # BUILDARCH != BASEARCH (e.g. i586 != i386) so it'll suffice.
- BASEARCH=`echo $BUILDARCH | sed -e 's/i.86/i386/'`
+ # 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; \
+ print rpmUtils.arch.getBaseArch(myarch=rpmUtils.arch.getCanonArch(skipRpmPlatform = True));"`
yumdownloader -c $yumconf anaconda || exit 1
rpm2cpio anaconda*rpm | cpio --quiet -iumd './usr*'
rm -f anaconda*rpm
--
1.6.2.5
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]