aboutsummaryrefslogtreecommitdiffstats
path: root/lfs-latest-git.php
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2022-04-30 09:40:46 -0500
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2022-04-30 09:40:46 -0500
commit8cab730a5b9f8d770c462b6f30ee33886f240b15 (patch)
tree27496f02fe1f2e08f329e3a88b7d7c1749df106b /lfs-latest-git.php
parent813ab55675c99ee4040c38ee468d4bf9b70bdd19 (diff)
parent93db1e614e093078304409d148a1cfe15fd3eb68 (diff)
Merge branch 'trunk' of git.linuxfromscratch.org:lfs into trunk
Diffstat (limited to 'lfs-latest-git.php')
-rw-r--r--lfs-latest-git.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lfs-latest-git.php b/lfs-latest-git.php
index df0ddcccc..645f8e70d 100644
--- a/lfs-latest-git.php
+++ b/lfs-latest-git.php
@@ -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 );
@@ -137,6 +146,7 @@ if ( $package == "systemd" ) $dirpath = "https://github.com/systemd/systemd/r
if ( $package == "tcl" ) $dirpath = "https://www.tcl.tk/software/tcltk/download.html";
if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." );
if ( $package == "vim" ) $dirpath = "https://github.com/vim/vim/tags";
+if ( $package == "wheel" ) $dirpath = "https://pypi.org/project/wheel/#files";
if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/releases";
// Check for ftp