Skip to content

Commit

Permalink
Use our hard-coded single mirror during compression detection to avoi…
Browse files Browse the repository at this point in the history
…d oscillation
  • Loading branch information
tianon committed Jan 8, 2018
1 parent 1f3be2b commit ee35fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ for version in "${versions[@]}"; do

compression=
for tryCompression in xz bz2 gz; do
if wget --quiet --spider "http://ftpmirror.gnu.org/gcc/gcc-$fullVersion/gcc-$fullVersion.tar.$tryCompression"; then
if wget --quiet --spider "$packagesUrl/gcc-$fullVersion/gcc-$fullVersion.tar.$tryCompression"; then
compression="$tryCompression"
break
fi
Expand Down

0 comments on commit ee35fa4

Please sign in to comment.