From c437fa0e3cdcf6bcccc49d2446ad90cda0fdbf9b Mon Sep 17 00:00:00 2001 From: ernierasta Date: Wed, 23 Oct 2013 13:13:17 +0200 Subject: [PATCH] Add multiarch support. --- apt-cyg | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apt-cyg b/apt-cyg index 25e1a72..42726ac 100644 --- a/apt-cyg +++ b/apt-cyg @@ -100,18 +100,27 @@ function findworkspace() function getsetup() { + + ARCH=`uname -m | grep _64` + if test "-$ARCH-" = "--" + then + arch="x86" + else + arch="x86_64" + fi + if test "$noscripts" == "0" -a "$noupdate" == "0" then touch setup.ini mv setup.ini setup.ini-save - wget -N $mirror/setup.bz2 + wget -N $mirror/$arch/setup.bz2 if test -e setup.bz2 && test $? -eq 0 then bunzip2 setup.bz2 mv setup setup.ini echo Updated setup.ini else - wget -N $mirror/setup.ini + wget -N $mirror/$arch/setup.ini if test -e setup.ini && test $? -eq 0 then echo Updated setup.ini