Author: bdubbs Date: Tue Jun 18 08:04:45 2019 New Revision: 11622 Log: Update currency for vim
Modified: trunk/BOOK/lfs-latest.php Modified: trunk/BOOK/lfs-latest.php ============================================================================== --- trunk/BOOK/lfs-latest.php Tue Jun 18 00:29:21 2019 (r11621) +++ trunk/BOOK/lfs-latest.php Tue Jun 18 08:04:45 2019 (r11622) @@ -104,7 +104,7 @@ global $exceptions; 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 == "e2fsprogs" ) $dirpath = "http://sourceforge.net/projects/e2fsprogs/files/e2fsprogs"; @@ -125,7 +125,8 @@ if ( $package == "systemd" ) $dirpath = "https://github.com/systemd/systemd/releases"; if ( $package == "tcl" ) $dirpath = "http://sourceforge.net/projects/tcl/files"; 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 if ( preg_match( "/^ftp/", $dirpath ) ) @@ -278,6 +279,9 @@ if ( $package == "openssl" ) 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 // Occasionally there are dashes (e.g. 201-1) return find_max( $lines, "/$package/", "/^.*$package-([\d\.-]*\d)\.tar.*$/" ); -- http://lists.linuxfromscratch.org/listinfo/lfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
