mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
currency: Remove two unneeded special cases
This commit is contained in:
parent
9c88d3e6cc
commit
c273fc81ec
@ -261,9 +261,6 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd");
|
|||||||
if ( $package == "e2fsprogs" )
|
if ( $package == "e2fsprogs" )
|
||||||
return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]+\d).*$/" );
|
return find_max( $lines, "/v\d/", "/^.*v(\d[\d\.]+\d).*$/" );
|
||||||
|
|
||||||
if ( $package == "eudev" )
|
|
||||||
return find_max( $lines, "/Release/", "/^.*Release (\d[\d\.]+\d).*$/" );
|
|
||||||
|
|
||||||
if ( $package == "expect" )
|
if ( $package == "expect" )
|
||||||
return find_max( $lines, "/expect/", "/^.*expect(\d[\d\.]+\d).tar.*$/" );
|
return find_max( $lines, "/expect/", "/^.*expect(\d[\d\.]+\d).tar.*$/" );
|
||||||
|
|
||||||
@ -314,9 +311,6 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd");
|
|||||||
if ( $package == "vim" )
|
if ( $package == "vim" )
|
||||||
return find_max( $lines, "/v\d\./", "/^.*v([\d\.]+).*$/" );
|
return find_max( $lines, "/v\d\./", "/^.*v([\d\.]+).*$/" );
|
||||||
|
|
||||||
if ( $package == "zstd" )
|
|
||||||
return find_max( $lines, "/Zstandard v/", "/^.*v([\d\.]+).*$/" );
|
|
||||||
|
|
||||||
if ( preg_match( "/api.github.com/", $dirpath) )
|
if ( preg_match( "/api.github.com/", $dirpath) )
|
||||||
return ltrim(json_decode(join("", $lines))->tag_name, "v");
|
return ltrim(json_decode(join("", $lines))->tag_name, "v");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user