mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
Update currency for vim
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11622 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
07fa80979b
commit
015138b994
@ -104,7 +104,7 @@ function get_packages( $package, $dirpath )
|
|||||||
global $exceptions;
|
global $exceptions;
|
||||||
global $regex;
|
global $regex;
|
||||||
|
|
||||||
//if ( $package != "expat" ) return 0; // Debug
|
//if ( $package != "vim" ) return 0; // Debug
|
||||||
|
|
||||||
if ( $package == "check" ) $dirpath = "https://github.com/libcheck/check/releases";
|
if ( $package == "check" ) $dirpath = "https://github.com/libcheck/check/releases";
|
||||||
if ( $package == "e2fsprogs" ) $dirpath = "http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs";
|
if ( $package == "e2fsprogs" ) $dirpath = "http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs";
|
||||||
@ -125,7 +125,8 @@ if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shad
|
|||||||
if ( $package == "systemd" ) $dirpath = "https://github.com/systemd/systemd/releases";
|
if ( $package == "systemd" ) $dirpath = "https://github.com/systemd/systemd/releases";
|
||||||
if ( $package == "tcl" ) $dirpath = "http://sourceforge.net/projects/tcl/files";
|
if ( $package == "tcl" ) $dirpath = "http://sourceforge.net/projects/tcl/files";
|
||||||
if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." );
|
if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." );
|
||||||
if ( $package == "vim" ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix";
|
if ( $package == "vim" ) $dirpath = "https://github.com/vim/vim/releases";
|
||||||
|
//if ( $package == "vim" ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix";
|
||||||
|
|
||||||
// Check for ftp
|
// Check for ftp
|
||||||
if ( preg_match( "/^ftp/", $dirpath ) )
|
if ( preg_match( "/^ftp/", $dirpath ) )
|
||||||
@ -278,6 +279,9 @@ if ( $package == "vim" ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix";
|
|||||||
if ( $package == "openssl" )
|
if ( $package == "openssl" )
|
||||||
return find_max( $lines, "/openssl/", "/^.*openssl-([\d\.p]*\d.?).tar.*$/" );
|
return find_max( $lines, "/openssl/", "/^.*openssl-([\d\.p]*\d.?).tar.*$/" );
|
||||||
|
|
||||||
|
if ( $package == "vim" )
|
||||||
|
return find_max( $lines, "/v\d\./", "/^.*v([\d\.]+).*$/" );
|
||||||
|
|
||||||
// Most packages are in the form $package-n.n.n
|
// Most packages are in the form $package-n.n.n
|
||||||
// Occasionally there are dashes (e.g. 201-1)
|
// Occasionally there are dashes (e.g. 201-1)
|
||||||
return find_max( $lines, "/$package/", "/^.*$package-([\d\.-]*\d)\.tar.*$/" );
|
return find_max( $lines, "/$package/", "/^.*$package-([\d\.-]*\d)\.tar.*$/" );
|
||||||
|
Loading…
Reference in New Issue
Block a user