Update currency for lz, openssl.

This commit is contained in:
Poltern 2024-08-06 21:12:24 +05:00
parent 01d2ff0508
commit fe78f7545b

View File

@ -135,12 +135,13 @@ 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 == "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 == "lz" ) $dirpath = github("lz4/lz4"); if ( $package == "lz4" ) $dirpath = github("lz4/lz4");
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";
if ( $package == "ncurses" ) $dirpath = "https://invisible-mirror.net/archives/ncurses"; if ( $package == "ncurses" ) $dirpath = "https://invisible-mirror.net/archives/ncurses";
if ( $package == "ninja" ) $dirpath = github("ninja-build/ninja"); if ( $package == "ninja" ) $dirpath = github("ninja-build/ninja");
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/";
@ -267,11 +268,11 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd");
if ( $package == "jinja" ) if ( $package == "jinja" )
return find_max( $lines, "/Jinja/", "/^.*Jinja2 ([\d\.]+).*$/" ); return find_max( $lines, "/Jinja/", "/^.*Jinja2 ([\d\.]+).*$/" );
if ( $package == "lz" ) if ( $package == "lz4" )
return find_max( $lines, "/name.:/", '/^.*LZ4 v([\d\.]+)".*$/' ); return find_max( $lines, "/tag_name/", '/^.*v([\d\.]+).*$/' );
if ( $package == "openssl" ) if ( $package == "openssl" )
return find_max( $lines, "/openssl/", "/^.*openssl-([\d\.p]*\d.?).tar.*$/" ); return find_max( $lines, "/name.:/", "/^.*OpenSSL ([\d\.]+\d).*$/" );
if ( $package == "Python" ) if ( $package == "Python" )
return find_max( $lines, "/Python 3/", "/^.*Python (3[\d\.]*\d) .*$/" ); return find_max( $lines, "/Python 3/", "/^.*Python (3[\d\.]*\d) .*$/" );
@ -348,6 +349,11 @@ function get_current()
$pattern = "/\D*(\d.*[a-z]*)\.tar\D*/"; $pattern = "/\D*(\d.*[a-z]*)\.tar\D*/";
} }
else if ( preg_match( "/lz4/", $file ) )
{
$pkg_pattern= "/(\D*4).*/";
}
else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; else if ( preg_match( "/systemd-man-pages/", $file ) ) continue;
else if ( preg_match( "/python/" , $file ) ) continue; else if ( preg_match( "/python/" , $file ) ) continue;