Skip to content

Commit b29ec29

Browse files
committed
Handle the x86/x86_64 split when downloading setup.ini
Cygwin recently introduced an x86_64 version and so all the mirrors now have x86 or x86_64 in their paths, depending on which version you've installed. The only change required is when the setup file is fetched. The setup file itself contains the paths prefixed with either x86 or x86_64
1 parent fc54d5c commit b29ec29

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

apt-cyg

+10-1
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,20 @@ function findworkspace()
9999

100100
function getsetup()
101101
{
102+
103+
ARCH=`uname -m | grep _64`
104+
if test "-$ARCH-" = "--"
105+
then
106+
arch="x86"
107+
else
108+
arch="x86_64"
109+
fi
110+
102111
if test "$noscripts" == "0" -a "$noupdate" == "0"
103112
then
104113
touch setup.ini
105114
mv setup.ini setup.ini-save
106-
wget -N $mirror/setup.bz2
115+
wget -N $mirror/$arch/setup.bz2
107116
if test -e setup.bz2 && test $? -eq 0
108117
then
109118
bunzip2 setup.bz2

0 commit comments

Comments
 (0)