diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2018-08-13 15:40:37 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2018-08-13 15:40:37 +0000 |
commit | c5eaf41f83d9fcbe9a3f67f17a6d7a62562bcb4c (patch) | |
tree | ddc3136e97f7b10dea9e6a3bebf7039c8cf1db8a | |
parent | 3b032196953ffaba87ea9b4f307a40a3efd726e9 (diff) |
Fix for new bzip2 location
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11448 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | lfs-latest.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lfs-latest.php b/lfs-latest.php index 78244fc51..845a3450a 100644 --- a/lfs-latest.php +++ b/lfs-latest.php @@ -11,7 +11,7 @@ $exceptions = array(); //$exceptions[ 'gmp' ] = "UPDIR=/.*(gmp-\d[\d\.-]*\d).*/:DOWNDIR="; $regex = array(); -$regex[ 'bzip2' ] = "/^.*current version is ([\d\.]+).*$/"; +//$regex[ 'bzip2' ] = "/^.*current version is ([\d\.]+).*$/"; $regex[ 'check' ] = "/^.*Check (\d[\d\.]+\d).*$/"; $regex[ 'intltool' ] = "/^.*Latest version is (\d[\d\.]+\d).*$/"; $regex[ 'less' ] = "/^.*current released version is less-(\d+).*$/"; @@ -189,13 +189,13 @@ if ( $package == "vim" ) $dirpath = "ftp://ftp.vim.org/pub/vim/unix"; $dirpath = substr ( $dirpath, 0, $position ); } - if ( $package == "bzip2" ) - { - // Remove one directory - $dirpath = rtrim ( $dirpath, "/" ); // Trim any trailing slash - $position = strrpos( $dirpath, "/" ); - $dirpath = substr ( $dirpath, 0, $position ); - } + //if ( $package == "bzip2" ) + //{ + // // Remove one directory + // $dirpath = rtrim ( $dirpath, "/" ); // Trim any trailing slash + // $position = strrpos( $dirpath, "/" ); + // $dirpath = substr ( $dirpath, 0, $position ); + //} $lines = http_get_file( $dirpath ); if ( ! is_array( $lines ) ) return -6; |