Changes in lfs-latest-git.php [3c9fe9a:3781c69]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest-git.php
r3c9fe9a r3781c69 31 31 foreach ( $lines as $line ) 32 32 { 33 if ( ! preg_match( $regex_match, $line ) ) continue; 33 if ( ! preg_match( $regex_match, $line ) ) continue; 34 34 35 35 // Isolate the version and put in an array 36 36 $slice = preg_replace( $regex_replace, "$1", $line ); 37 if ( $slice == $line ) continue; 38 39 array_push( $a, $slice ); 37 if ( $slice == $line ) continue; 38 39 array_push( $a, $slice ); 40 40 } 41 41 … … 99 99 $max = find_max( $lines, $regex_match, $regex_replace ); 100 100 101 return "$dirpath/$max"; 101 return "$dirpath/$max"; 102 102 } 103 103 … … 113 113 if ( $package == "e2fsprogs" ) $dirpath = "https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/"; 114 114 if ( $package == "expat" ) $dirpath = "http://sourceforge.net/projects/expat/files"; 115 if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"; 116 if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/expect/files"; 115 if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"; 116 if ( $package == "expect" ) $dirpath = "http://sourceforge.net/projects/expect/files"; 117 117 if ( $package == "file" ) $dirpath = "https://github.com/file/file/releases"; 118 118 if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases"; … … 139 139 140 140 // Check for ftp 141 if ( preg_match( "/^ftp/", $dirpath ) ) 142 { 141 if ( preg_match( "/^ftp/", $dirpath ) ) 142 { 143 143 $dirpath = substr( $dirpath, 6 ); // Remove ftp:// 144 144 $dirpath = rtrim ( $dirpath, "/" ); // Trim any trailing slash … … 148 148 149 149 $conn = ftp_connect( $server ); 150 ftp_login( $conn, "anonymous", "" ); 150 ftp_login( $conn, "anonymous", "" ); 151 151 152 152 // See if we need special handling … … 167 167 168 168 // Get dir listing 169 $lines = ftp_rawlist ($conn, $path); 169 $lines = ftp_rawlist ($conn, $path); 170 170 $max = find_max( $lines, $regexp, $regexp ); 171 171 break; … … 234 234 } 235 235 236 if ( $package == "attr" || 236 if ( $package == "attr" || 237 237 $package == "acl" ) 238 238 { … … 362 362 } 363 363 364 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 365 else if ( preg_match( "/python/" , $file ) ) continue; 364 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 365 else if ( preg_match( "/python/" , $file ) ) continue; 366 366 367 367 $version = preg_replace( $pattern, "$1", $file ); // Isolate version
Note:
See TracChangeset
for help on using the changeset viewer.