diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2020-01-13 16:07:23 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2020-01-13 16:07:23 +0000 |
commit | 912108f0925faa527af5ab28dfe69bd9db135ffc (patch) | |
tree | 9caaef50879a024ad26ab3746900981b8a474cbd | |
parent | 33b49b6aa8a22b30ffc2c7b0f326df1cf23568f8 (diff) |
Update currency for zstd
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11728 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | lfs-latest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lfs-latest.php b/lfs-latest.php index 504e28648..b1de12689 100644 --- a/lfs-latest.php +++ b/lfs-latest.php @@ -104,7 +104,7 @@ function get_packages( $package, $dirpath ) global $exceptions; global $regex; -//if ( $package != "vim" ) return 0; // Debug +//if ( $package != "zstd" ) return 0; // Debug if ( $package == "bc" ) $dirpath = "https://github.com/gavinhoward/bc/releases"; if ( $package == "check" ) $dirpath = "https://github.com/libcheck/check/releases"; @@ -127,6 +127,7 @@ if ( $package == "systemd" ) $dirpath = "https://github.com/systemd/systemd/r if ( $package == "tcl" ) $dirpath = "http://sourceforge.net/projects/tcl/files"; if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." ); if ( $package == "vim" ) $dirpath = "https://github.com/vim/vim/releases"; +if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/releases"; //if ( $package == "vim" ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix"; // Check for ftp @@ -283,6 +284,9 @@ if ( $package == "vim" ) $dirpath = "https://github.com/vim/vim/releases" if ( $package == "vim" ) return find_max( $lines, "/v\d\./", "/^.*v([\d\.]+).*$/" ); + if ( $package == "zstd" ) + return find_max( $lines, "/Zstandard v/", "/^.*v([\d\.]+).*$/" ); + // Most packages are in the form $package-n.n.n // Occasionally there are dashes (e.g. 201-1) return find_max( $lines, "/$package/", "/^.*$package-([\d\.-]*\d)\.tar.*$/" ); |