From c273fc81ecdf4bd7f9e3960eaffc03cbf55c6794 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Mon, 3 Jul 2023 18:19:51 +0800 Subject: currency: Remove two unneeded special cases --- lfs-latest-git.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lfs-latest-git.php b/lfs-latest-git.php index de8f89563..140ac6492 100644 --- a/lfs-latest-git.php +++ b/lfs-latest-git.php @@ -261,9 +261,6 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd"); if ( $package == "e2fsprogs" ) 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" ) return find_max( $lines, "/expect/", "/^.*expect(\d[\d\.]+\d).tar.*$/" ); @@ -314,9 +311,6 @@ if ( $package == "zstd" ) $dirpath = github("facebook/zstd"); if ( $package == "vim" ) 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) ) return ltrim(json_decode(join("", $lines))->tag_name, "v"); -- cgit v1.2.3-54-g00ecf