mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-02-08 15:23:24 +00:00
Automatic merge of trunk into multilib
This commit is contained in:
commit
20d3801d62
@ -70,6 +70,7 @@ function find_even_max( $lines, $regex_match, $regex_replace )
|
||||
function http_get_file( $url )
|
||||
{
|
||||
if ( ! preg_match( "/sourceforge/", $url ) &&
|
||||
! preg_match( "/mpfr/", $url ) &&
|
||||
! preg_match( "/psmisc/", $url ) )
|
||||
{
|
||||
exec( "curl --location --silent --max-time 30 $url", $dir );
|
||||
@ -78,6 +79,14 @@ function http_get_file( $url )
|
||||
$dir = strip_tags( $s );
|
||||
return explode( "\n", $dir );
|
||||
}
|
||||
else if ( preg_match( "/mpfr/", $url ) )
|
||||
{
|
||||
# There seems to be a problem with the mpfs certificate
|
||||
exec( "curl --location --silent --insecure --max-time 30 $url", $dir );
|
||||
$s = implode( "\n", $dir );
|
||||
$dir = strip_tags( $s );
|
||||
return explode( "\n", $dir );
|
||||
}
|
||||
else
|
||||
{
|
||||
exec( "lynx -dump $url 2>/dev/null", $lines );
|
||||
|
Loading…
Reference in New Issue
Block a user