We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e5a971 commit ef82316Copy full SHA for ef82316
.travis-install-pari.sh
@@ -8,7 +8,9 @@ PARI_URL="http://pari.math.u-bordeaux.fr/pub/pari/$URLDIR"
8
# Figure out PARI version and download location
9
# Note that we support giving a list of URLs
10
if [ "$PARI_VERSION" = snapshot ]; then
11
- PARI_VERSION=$(wget -qO- "$PARI_URL" | sed -n 's/.*href="\(pari-.*-g.*\)[.]tar[.]gz".*/\1/p')
+ # 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')
14
fi
15
16
# Download PARI sources
0 commit comments