mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 03:39:20 +01:00
Fix currency for psmisc and procps-ng
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12100 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
a35db3ff05
commit
82d0965190
@ -69,7 +69,8 @@ function find_even_max( $lines, $regex_match, $regex_replace )
|
|||||||
|
|
||||||
function http_get_file( $url )
|
function http_get_file( $url )
|
||||||
{
|
{
|
||||||
if ( ! preg_match( "/sourceforge/", $url ) )
|
if ( ! preg_match( "/sourceforge/", $url ) &&
|
||||||
|
! preg_match( "/psmisc/", $url ) )
|
||||||
{
|
{
|
||||||
exec( "curl --location --silent --max-time 30 $url", $dir );
|
exec( "curl --location --silent --max-time 30 $url", $dir );
|
||||||
|
|
||||||
@ -105,7 +106,7 @@ function get_packages( $package, $dirpath )
|
|||||||
global $exceptions;
|
global $exceptions;
|
||||||
global $regex;
|
global $regex;
|
||||||
|
|
||||||
//if ( $package != "zstd" ) return 0; // Debug
|
if ( $package != "psmisc" ) return 0; // Debug
|
||||||
|
|
||||||
if ( $package == "bc" ) $dirpath = "https://github.com/gavinhoward/bc/releases";
|
if ( $package == "bc" ) $dirpath = "https://github.com/gavinhoward/bc/releases";
|
||||||
if ( $package == "check" ) $dirpath = "https://github.com/libcheck/check/releases";
|
if ( $package == "check" ) $dirpath = "https://github.com/libcheck/check/releases";
|
||||||
@ -122,9 +123,7 @@ if ( $package == "meson" ) $dirpath = "https://github.com/mesonbuild/meson/
|
|||||||
if ( $package == "mpc" ) $dirpath = "https://ftp.gnu.org/gnu/mpc";
|
if ( $package == "mpc" ) $dirpath = "https://ftp.gnu.org/gnu/mpc";
|
||||||
if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current";
|
if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current";
|
||||||
if ( $package == "ninja" ) $dirpath = "https://github.com/ninja-build/ninja/releases";
|
if ( $package == "ninja" ) $dirpath = "https://github.com/ninja-build/ninja/releases";
|
||||||
//if ( $package == "procps-ng" ) $dirpath = "http://sourceforge.net/projects/procps-ng/files";
|
|
||||||
if ( $package == "procps-ng" ) $dirpath = "https://gitlab.com/procps-ng/procps/-/tags";
|
if ( $package == "procps-ng" ) $dirpath = "https://gitlab.com/procps-ng/procps/-/tags";
|
||||||
//if ( $package == "psmisc" ) $dirpath = "http://sourceforge.net/projects/$package/files";
|
|
||||||
if ( $package == "psmisc" ) $dirpath = "https://gitlab.com/psmisc/psmisc/-/tags";
|
if ( $package == "psmisc" ) $dirpath = "https://gitlab.com/psmisc/psmisc/-/tags";
|
||||||
if ( $package == "Python" ) $dirpath = "https://www.python.org/downloads/source/";
|
if ( $package == "Python" ) $dirpath = "https://www.python.org/downloads/source/";
|
||||||
if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shadow/releases";
|
if ( $package == "shadow" ) $dirpath = "https://github.com/shadow-maint/shadow/releases";
|
||||||
@ -281,10 +280,10 @@ if ( $package == "zstd" ) $dirpath = "https://github.com/facebook/zstd/rel
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( $package == "procps-ng" )
|
if ( $package == "procps-ng" )
|
||||||
return find_max( $lines, "/v\d/", "/^.*v([\d\.]+).*$/" );
|
return find_max( $lines, "/v\d/", "/^.*v([\d\.]+) .*$/" );
|
||||||
|
|
||||||
if ( $package == "psmisc" )
|
if ( $package == "psmisc" )
|
||||||
return find_max( $lines, "/^v/", "/^v([\d\.]+).*$/" );
|
return find_max( $lines, "/v\d/", "/^.*v([\d\.]+) .*$/" );
|
||||||
|
|
||||||
if ( $package == "grub" )
|
if ( $package == "grub" )
|
||||||
return find_max( $lines, "/grub/", "/^.*grub-(\d\..*).tar.xz.*$/" );
|
return find_max( $lines, "/grub/", "/^.*grub-(\d\..*).tar.xz.*$/" );
|
||||||
|
Loading…
Reference in New Issue
Block a user