Skip to content

Commit ef82316

Browse files
committed
Use most recent snapshot file
1 parent 8e5a971 commit ef82316

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis-install-pari.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ PARI_URL="http://pari.math.u-bordeaux.fr/pub/pari/$URLDIR"
88
# Figure out PARI version and download location
99
# Note that we support giving a list of URLs
1010
if [ "$PARI_VERSION" = snapshot ]; then
11-
PARI_VERSION=$(wget -qO- "$PARI_URL" | sed -n 's/.*href="\(pari-.*-g.*\)[.]tar[.]gz".*/\1/p')
11+
# The C=M;O=D request means: sort by date, most recent first.
12+
# Then the first tarball is the one we want.
13+
PARI_VERSION=$(wget -qO- "$PARI_URL/?C=M;O=D" | sed -n 's/.*href="\(pari-.*-g.*\)[.]tar[.]gz".*/\1/; T; p; q')
1214
fi
1315

1416
# Download PARI sources

0 commit comments

Comments
 (0)