Changeset 716db1f for lfs-latest.php
- Timestamp:
- 09/20/2021 07:37:34 AM (3 years ago)
- Branches:
- multilib
- Children:
- 60870bc
- Parents:
- e680022 (diff), 7e62bbc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest.php
re680022 r716db1f 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 = "http://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"; … … 136 136 137 137 // Check for ftp 138 if ( preg_match( "/^ftp/", $dirpath ) ) 139 { 138 if ( preg_match( "/^ftp/", $dirpath ) ) 139 { 140 140 $dirpath = substr( $dirpath, 6 ); // Remove ftp:// 141 141 $dirpath = rtrim ( $dirpath, "/" ); // Trim any trailing slash … … 145 145 146 146 $conn = ftp_connect( $server ); 147 ftp_login( $conn, "anonymous", "" ); 147 ftp_login( $conn, "anonymous", "" ); 148 148 149 149 // See if we need special handling … … 164 164 165 165 // Get dir listing 166 $lines = ftp_rawlist ($conn, $path); 166 $lines = ftp_rawlist ($conn, $path); 167 167 $max = find_max( $lines, $regexp, $regexp ); 168 168 break; … … 197 197 } 198 198 199 //if ( $package == "bzip2" ) 199 //if ( $package == "bzip2" ) 200 200 //{ 201 201 // // Remove one directory … … 239 239 } 240 240 241 if ( $package == "attr" || 241 if ( $package == "attr" || 242 242 $package == "acl" ) 243 243 { … … 357 357 } 358 358 359 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 360 else if ( preg_match( "/python/" , $file ) ) continue; 359 else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 360 else if ( preg_match( "/python/" , $file ) ) continue; 361 361 362 362 $version = preg_replace( $pattern, "$1", $file ); // Isolate version
Note:
See TracChangeset
for help on using the changeset viewer.