mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-31 11:21:59 +00:00
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:
parent
ea94a21b79
commit
13342a0718
@ -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.*$/" );
|
||||
|
Loading…
Reference in New Issue
Block a user