mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Update currency for zstd
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11728 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
33b49b6aa8
commit
912108f092
@ -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.*$/" );
|
||||
|
Loading…
Reference in New Issue
Block a user