mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 04:57:38 +00:00
Update currency for python modules.
This commit is contained in:
parent
410e400a79
commit
a44b23f7a4
@ -11,13 +11,9 @@ $exceptions = array();
|
|||||||
//$exceptions[ 'gmp' ] = "UPDIR=/.*(gmp-\d[\d\.-]*\d).*/:DOWNDIR=";
|
//$exceptions[ 'gmp' ] = "UPDIR=/.*(gmp-\d[\d\.-]*\d).*/:DOWNDIR=";
|
||||||
|
|
||||||
$regex = array();
|
$regex = array();
|
||||||
//$regex[ 'bzip2' ] = "/^.*current version is ([\d\.]+).*$/";
|
|
||||||
$regex[ 'intltool' ] = "/^.*Latest version is (\d[\d\.]+\d).*$/";
|
$regex[ 'intltool' ] = "/^.*Latest version is (\d[\d\.]+\d).*$/";
|
||||||
$regex[ 'less' ] = "/^.*current released version is less-(\d+).*$/";
|
$regex[ 'less' ] = "/^.*current released version is less-(\d+).*$/";
|
||||||
$regex[ 'markupsafe' ] = "/^.*MarkupSafe ([\d\.]+).*$/";
|
|
||||||
$regex[ 'mpfr' ] = "/^mpfr-([\d\.]+)\.tar.*$/";
|
$regex[ 'mpfr' ] = "/^mpfr-([\d\.]+)\.tar.*$/";
|
||||||
//$regex[ 'Python' ] = "/^.*Latest Python 3.*Python (3[\d\.]+\d).*$/";
|
|
||||||
//$regex[ 'sysvinit' ] = "/^.*sysvinit-([\d\.]+)dsf\.tar.*$/";
|
|
||||||
$regex[ 'tzdata' ] = "/^.*tzdata([\d]+[a-z]).*$/";
|
$regex[ 'tzdata' ] = "/^.*tzdata([\d]+[a-z]).*$/";
|
||||||
$regex[ 'xz' ] = "/^.*xz-([\d\.]*\d).*$/";
|
$regex[ 'xz' ] = "/^.*xz-([\d\.]*\d).*$/";
|
||||||
$regex[ 'zlib' ] = "/^.*zlib ([\d\.]*\d).*$/";
|
$regex[ 'zlib' ] = "/^.*zlib ([\d\.]*\d).*$/";
|
||||||
@ -119,7 +115,7 @@ function get_packages( $package, $dirpath )
|
|||||||
global $exceptions;
|
global $exceptions;
|
||||||
global $regex;
|
global $regex;
|
||||||
|
|
||||||
//if ( $package != "psmisc" ) return 0; // debug
|
//if ( $package != "wheel" ) return 0; // debug
|
||||||
|
|
||||||
if ( $package == "bc" ) $dirpath = github("gavinhoward/bc");
|
if ( $package == "bc" ) $dirpath = github("gavinhoward/bc");
|
||||||
if ( $package == "check" ) $dirpath = github("libcheck/check");
|
if ( $package == "check" ) $dirpath = github("libcheck/check");
|
||||||
@ -129,14 +125,15 @@ if ( $package == "elfutils" ) $dirpath = "https://sourceware.org/ftp/elfutils"
|
|||||||
if ( $package == "expect" ) $dirpath = "https://sourceforge.net/projects/expect/files";
|
if ( $package == "expect" ) $dirpath = "https://sourceforge.net/projects/expect/files";
|
||||||
if ( $package == "file" ) $dirpath = "https://github.com/file/file/tags";
|
if ( $package == "file" ) $dirpath = "https://github.com/file/file/tags";
|
||||||
if ( $package == "flex" ) $dirpath = github("westes/flex");
|
if ( $package == "flex" ) $dirpath = github("westes/flex");
|
||||||
if ( $package == "flit_core" ) $dirpath = "https://pypi.org/project/flit-core/";
|
if ( $package == "flit_core" ) $dirpath = "https://pypi.org/rss/project/flit-core/releases.xml";
|
||||||
if ( $package == "setuptools" ) $dirpath = "https://pypi.org/project/setuptools/";
|
|
||||||
if ( $package == "gcc" ) $dirpath = max_parent( $dirpath, "gcc-" );
|
if ( $package == "gcc" ) $dirpath = max_parent( $dirpath, "gcc-" );
|
||||||
if ( $package == "iana-etc" ) $dirpath = github("Mic92/iana-etc");
|
if ( $package == "iana-etc" ) $dirpath = github("Mic92/iana-etc");
|
||||||
if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk";
|
if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk";
|
||||||
|
if ( $package == "jinja" ) $dirpath = "https://pypi.org/rss/project/jinja2/releases.xml";
|
||||||
if ( $package == "libffi" ) $dirpath = github("libffi/libffi");
|
if ( $package == "libffi" ) $dirpath = github("libffi/libffi");
|
||||||
if ( $package == "libxcrypt" ) $dirpath = github("besser82/libxcrypt");
|
if ( $package == "libxcrypt" ) $dirpath = github("besser82/libxcrypt");
|
||||||
if ( $package == "lz4" ) $dirpath = github("lz4/lz4");
|
if ( $package == "lz4" ) $dirpath = github("lz4/lz4");
|
||||||
|
if ( $package == "markupsafe" ) $dirpath = "https://pypi.org/rss/project/markupsafe/releases.xml";
|
||||||
if ( $package == "meson" ) $dirpath = github("mesonbuild/meson");
|
if ( $package == "meson" ) $dirpath = github("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 = "https://mpfr.loria.fr/mpfr-current";
|
if ( $package == "mpfr" ) $dirpath = "https://mpfr.loria.fr/mpfr-current";
|
||||||
@ -146,17 +143,15 @@ if ( $package == "openssl" ) $dirpath = github("openssl/openssl");
|
|||||||
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 = "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 == "setuptools" ) $dirpath = "https://pypi.org/rss/project/setuptools/releases.xml";
|
||||||
if ( $package == "shadow" ) $dirpath = github("shadow-maint/shadow");
|
if ( $package == "shadow" ) $dirpath = github("shadow-maint/shadow");
|
||||||
if ( $package == "sysvinit" ) $dirpath = github("slicer69/sysvinit");
|
if ( $package == "sysvinit" ) $dirpath = github("slicer69/sysvinit");
|
||||||
if ( $package == "markupsafe" ) $dirpath = "https://pypi.python.org/pypi/MarkupSafe/";
|
|
||||||
if ( $package == "jinja" ) $dirpath = "https://pypi.python.org/pypi/Jinja2/";
|
|
||||||
if ( $package == "sysklogd" ) $dirpath = github("troglobit/sysklogd");
|
if ( $package == "sysklogd" ) $dirpath = github("troglobit/sysklogd");
|
||||||
if ( $package == "systemd" ) $dirpath = github("systemd/systemd");
|
if ( $package == "systemd" ) $dirpath = github("systemd/systemd");
|
||||||
//if ( $package == "tcl" ) $dirpath = "https://sourceforge.net/projects/tcl/files";
|
|
||||||
if ( $package == "tcl" ) $dirpath = "https://www.tcl.tk/software/tcltk/download.html";
|
if ( $package == "tcl" ) $dirpath = "https://www.tcl.tk/software/tcltk/download.html";
|
||||||
if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." );
|
if ( $package == "util-linux" ) $dirpath = max_parent( $dirpath, "v." );
|
||||||
if ( $package == "vim" ) $dirpath = "https://github.com/vim/vim/tags";
|
if ( $package == "vim" ) $dirpath = "https://github.com/vim/vim/tags";
|
||||||
if ( $package == "wheel" ) $dirpath = "https://pypi.org/project/wheel/#files";
|
if ( $package == "wheel" ) $dirpath = "https://pypi.org/rss/project/wheel/releases.xml";
|
||||||
if ( $package == "xz" ) $dirpath = github("tukaani-project/xz");
|
if ( $package == "xz" ) $dirpath = github("tukaani-project/xz");
|
||||||
if ( $package == "zlib" ) $dirpath = "https://www.zlib.net";
|
if ( $package == "zlib" ) $dirpath = "https://www.zlib.net";
|
||||||
if ( $package == "zstd" ) $dirpath = github("facebook/zstd");
|
if ( $package == "zstd" ) $dirpath = github("facebook/zstd");
|
||||||
@ -251,14 +246,22 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd");
|
|||||||
return str_replace( "_", ".", $max );
|
return str_replace( "_", ".", $max );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Python modules
|
||||||
if ( $package == "flit_core" )
|
if ( $package == "flit_core" )
|
||||||
return find_max( $lines, "/flit-core /", "/^.*flit-core ([\d\.]+)$/" );
|
return find_max( $lines, "/flit-core\/\d/", "/^.*flit-core\/([\d\.]+).*$/" );
|
||||||
|
|
||||||
if ( $package == "setuptools" )
|
if ( $package == "setuptools" )
|
||||||
return find_max( $lines, "/setuptools /", "/^.*setuptools ([\d\.]+)$/" );
|
return find_max( $lines, "/setuptools\/\d/", "/^.*setuptools\/([\d\.]+).*$/" );
|
||||||
|
|
||||||
if ( $package == "MarkupSafe" )
|
if ( $package == "markupsafe" )
|
||||||
return find_max( $lines, "/MarkupSafe /", "/^.*MarkupSafe ([\d\.]+)$/" );
|
return find_max( $lines, "/markupsafe\/\d/", "/^.*markupsafe\/([\d\.]+).*$/" );
|
||||||
|
|
||||||
|
if ( $package == "jinja" )
|
||||||
|
return find_max( $lines, "/jinja2\/\d/", "/^.*jinja2\/([\d\.]+).*$/" );
|
||||||
|
|
||||||
|
if ( $package == "wheel" )
|
||||||
|
return find_max( $lines, "/wheel\/\d/", "/^.*wheel\/([\d\.]+).*$/" );
|
||||||
|
# End Python modules
|
||||||
|
|
||||||
if ( $package == "procps-ng" )
|
if ( $package == "procps-ng" )
|
||||||
return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" );
|
return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" );
|
||||||
@ -269,9 +272,6 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd");
|
|||||||
if ( $package == "grub" )
|
if ( $package == "grub" )
|
||||||
return find_max( $lines, "/grub/", "/^.*grub-([\d\.]+).tar.xz.*$/" );
|
return find_max( $lines, "/grub/", "/^.*grub-([\d\.]+).tar.xz.*$/" );
|
||||||
|
|
||||||
if ( $package == "jinja" )
|
|
||||||
return find_max( $lines, "/Jinja/", "/^.*Jinja2 ([\d\.]+).*$/" );
|
|
||||||
|
|
||||||
if ( $package == "lz4" )
|
if ( $package == "lz4" )
|
||||||
return find_max( $lines, "/tag_name/", '/^.*v([\d\.]+).*$/' );
|
return find_max( $lines, "/tag_name/", '/^.*v([\d\.]+).*$/' );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user