Currency updates.

Fix currency for iana-etc, meson, and shadow due to the way github
changes when accessing pages via wget.
This commit is contained in:
Bruce Dubbs 2022-09-17 15:43:51 -05:00
parent ea94a21b79
commit 13342a0718

View File

@ -34,7 +34,7 @@ function find_max( $lines, $regex_match, $regex_replace )
// Isolate the version and put in an array // Isolate the version and put in an array
$slice = preg_replace( $regex_replace, "$1", $line ); $slice = preg_replace( $regex_replace, "$1", $line );
if ( $slice == $line ) continue; if ( strcmp( $slice, $line ) == 0 ) continue;
array_push( $a, $slice ); array_push( $a, $slice );
} }
@ -266,6 +266,15 @@ if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/rel
if ( $package == "elfutils" ) if ( $package == "elfutils" )
return find_max( $lines, "/^\d/", "/^(\d[\d\.]+\d)\/.*$/" ); 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" ) if ( $package == "XML-Parser" )
{ {
$max = find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d).tar.*$/" ); $max = find_max( $lines, "/$package/", "/^.*$package-([\d\._]*\d).tar.*$/" );