diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2023-04-01 17:07:06 -0500 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2023-04-01 17:07:06 -0500 |
commit | fc9a3199106057d815cb1e5edd3bcb8f4777891a (patch) | |
tree | 609a0d79126f0777240e4818a524e8758ec2f2d4 | |
parent | fd531b84c94f504f604c37f397f46c381e88841a (diff) |
Update currency for flit-core
-rw-r--r-- | lfs-latest-git.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lfs-latest-git.php b/lfs-latest-git.php index 2b3c9ab47..b380a5a83 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -103,8 +103,8 @@ function max_parent( $dirpath, $prefix ) $lines = http_get_file( $dirpath ); - $regex_match = "#${prefix}[\d\.]+/#"; - $regex_replace = "#^.*(${prefix}[\d\.]+)/.*$#"; + $regex_match = "#{$prefix}[\d\.]+/#"; + $regex_replace = "#^.*({$prefix}[\d\.]+)/.*$#"; $max = find_max( $lines, $regex_match, $regex_replace ); return "$dirpath/$max"; @@ -126,6 +126,7 @@ if ( $package == "expect" ) $dirpath = "https://sourceforge.net/projects/exp if ( $package == "eudev" ) $dirpath = "https://github.com/eudev-project/eudev/releases"; if ( $package == "file" ) $dirpath = "https://github.com/file/file/tags"; if ( $package == "flex" ) $dirpath = "https://github.com/westes/flex/releases"; +if ( $package == "flit_core" ) $dirpath = "https://pypi.org/project/flit-core/"; if ( $package == "gcc" ) $dirpath = max_parent( $dirpath, "gcc-" ); if ( $package == "iana-etc" ) $dirpath = "https://github.com/Mic92/iana-etc/releases"; if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk"; @@ -308,6 +309,9 @@ if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/rel if ( $package == "libffi" ) return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" ); + if ( $package == "flit_core" ) + return find_max( $lines, "/flit-core /", "/^.*flit-core ([\d\.]+)$/" ); + if ( $package == "procps-ng" ) return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" ); @@ -503,7 +507,7 @@ table td { { $v = get_packages( $pkg, $dir ); $flag = ( $vers[ $pkg ] != $v ) ? "*" : ""; - echo "<tr><td>$pkg</td> <td>${vers[ $pkg ]}</td> <td>$v</td> <td>$flag</td></tr>\n"; + echo "<tr><td>$pkg</td> <td>{$vers[ $pkg ]}</td> <td>$v</td> <td>$flag</td></tr>\n"; } echo "</table> |