Skip to content

Commit

Permalink
Handle the x86/x86_64 split when downloading setup.ini
Browse files Browse the repository at this point in the history
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
  • Loading branch information
aguynamedryan committed Aug 9, 2013
1 parent fc54d5c commit b29ec29
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion apt-cyg
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,20 @@ 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
Expand Down

0 comments on commit b29ec29

Please sign in to comment.