diff options
author | Olli Helenius <liff@iki.fi> | 2019-02-24 18:46:58 +0200 |
---|---|---|
committer | Olli Helenius <liff@iki.fi> | 2019-02-24 18:46:58 +0200 |
commit | 291eae81ff8a34e1490b56f9f5b622d8b7475f6a (patch) | |
tree | f011d5cd2fc7eb25823ec1f976614efdb1472ee6 /pkgs/development/libraries | |
parent | 16b009d1c053e2da5cba4bf1afa9adf5bac48a4b (diff) |
Scrape directory index with curl instead of lynx
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/aspell/dictionaries.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/aspell/dictionaries.nix b/pkgs/development/libraries/aspell/dictionaries.nix index 172da7e941c8d..30f801ccbb25b 100644 --- a/pkgs/development/libraries/aspell/dictionaries.nix +++ b/pkgs/development/libraries/aspell/dictionaries.nix @@ -83,9 +83,9 @@ let # compares as newer because the versioning scheme has changed. versions=$( echo '['; - lynx -dump "https://ftp.gnu.org/gnu/aspell/dict/${language}/?F=0" | \ - sed -r "s/^ +\* \[[0-9]+\]${filename}-${language}-([A-Za-z0-9_+.-]+)\.tar\.bz2$/\"\1\"/;t;d" | \ - if [ "${language}" = "ca" ]; then grep -v 20040130-1; else cat; fi; \ + curl -s 'https://ftp.gnu.org/gnu/aspell/dict/${language}/?F=0' | \ + sed -r 's/.* href="${filename}-${language}-([A-Za-z0-9_+.-]+)\.tar\.bz2".*/"\1"/;t;d' | \ + if [ '${language}' = "ca" ]; then grep -v 20040130-1; else cat; fi; \ echo ']') # Sort versions in descending order using Nix's and take the first as the latest. |