Changeset fc9a319 for lfs-latest-git.php
- Timestamp:
- 04/01/2023 10:07:06 PM (6 months ago)
- Branches:
- 12.0, 12.0-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/parallelism
- Children:
- 864c66d, 99c2da0
- Parents:
- fd531b84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest-git.php
rfd531b84 rfc9a319 104 104 $lines = http_get_file( $dirpath ); 105 105 106 $regex_match = "# ${prefix}[\d\.]+/#";107 $regex_replace = "#^.*( ${prefix}[\d\.]+)/.*$#";106 $regex_match = "#{$prefix}[\d\.]+/#"; 107 $regex_replace = "#^.*({$prefix}[\d\.]+)/.*$#"; 108 108 $max = find_max( $lines, $regex_match, $regex_replace ); 109 109 … … 127 127 if ( $package == "file" ) $dirpath = "https://github.com/file/file/tags"; 128 128 if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases"; 129 if ( $package == "flit_core" ) $dirpath = "https://pypi.org/project/flit-core/"; 129 130 if ( $package == "gcc" ) $dirpath = max_parent( $dirpath, "gcc-" ); 130 131 if ( $package == "iana-etc" ) $dirpath = "https://github.com/Mic92/iana-etc/releases"; … … 309 310 return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" ); 310 311 312 if ( $package == "flit_core" ) 313 return find_max( $lines, "/flit-core /", "/^.*flit-core ([\d\.]+)$/" ); 314 311 315 if ( $package == "procps-ng" ) 312 316 return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" ); … … 504 508 $v = get_packages( $pkg, $dir ); 505 509 $flag = ( $vers[ $pkg ] != $v ) ? "*" : ""; 506 echo "<tr><td>$pkg</td> <td> ${vers[ $pkg ]}</td> <td>$v</td> <td>$flag</td></tr>\n";510 echo "<tr><td>$pkg</td> <td>{$vers[ $pkg ]}</td> <td>$v</td> <td>$flag</td></tr>\n"; 507 511 } 508 512
Note:
See TracChangeset
for help on using the changeset viewer.