Changeset 3781c69 for lfs-latest-git.php
- Timestamp:
- 09/07/2021 09:10:29 PM (3 years ago)
- Branches:
- 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 9ee05b53
- Parents:
- 4458e3d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest-git.php
r4458e3d 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.