diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2022-09-17 15:43:51 -0500 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2022-09-17 15:43:51 -0500 |
commit | 13342a071888e4fe731361977f933fd30770377a (patch) | |
tree | 1cf1adf4dc5f2bb7153a19148a003d59725142d9 /lfs-latest-git.php | |
parent | ea94a21b79b9615b78baac12da02cefb025a784d (diff) |
Currency updates.
Fix currency for iana-etc, meson, and shadow due to the way github
changes when accessing pages via wget.
Diffstat (limited to 'lfs-latest-git.php')
-rw-r--r-- | lfs-latest-git.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lfs-latest-git.php b/lfs-latest-git.php index 645f8e70d..5dda8476c 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -34,7 +34,7 @@ function find_max( $lines, $regex_match, $regex_replace ) // Isolate the version and put in an array $slice = preg_replace( $regex_replace, "$1", $line ); - if ( $slice == $line ) continue; + if ( strcmp( $slice, $line ) == 0 ) continue; array_push( $a, $slice ); } @@ -266,6 +266,15 @@ if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/rel if ( $package == "elfutils" ) return find_max( $lines, "/^\d/", "/^(\d[\d\.]+\d)\/.*$/" ); + if ( $package == "iana-etc" ) + return find_max( $lines, "/^\s*20\d\d/", "/^\s+(\d+).*$/" ); + + if ( $package == "meson" ) + return find_max( $lines, "/^\s+\d\./", "/^\s+([\d\.]+)$/" ); + + if ( $package == "shadow" ) + return find_max( $lines, "/^\s+\d\./", "/^\s+([\d\.]+)$/" ); + if ( $package == "XML-Parser" ) { $max = find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d).tar.*$/" ); |