Changeset e43b7e7
- Timestamp:
- 07/03/2023 09:53:41 AM (15 months ago)
- Branches:
- 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/update-glibc
- Children:
- 8772b7b
- Parents:
- bf7d328
- git-author:
- Xi Ruoyao <xry111@…> (07/03/2023 09:48:44 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (07/03/2023 09:53:41 AM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest-git.php
rbf7d328 re43b7e7 107 107 108 108 return "$dirpath/$max"; 109 } 110 111 function github( $path ) 112 { 113 return "https://api.github.com/repos/$path/releases/latest"; 109 114 } 110 115 … … 130 135 if ( $package == "intltool" ) $dirpath = "https://launchpad.net/intltool/trunk"; 131 136 if ( $package == "libffi" ) $dirpath = "https://github.com/libffi/libffi/releases"; 137 if ( $package == "libxcrypt" ) $dirpath = github("besser82/libxcrypt"); 132 138 if ( $package == "meson" ) $dirpath = "https://github.com/mesonbuild/meson/releases"; 133 139 if ( $package == "mpc" ) $dirpath = "https://ftp.gnu.org/gnu/mpc"; … … 332 338 return find_max( $lines, "/Zstandard v/", "/^.*v([\d\.]+).*$/" ); 333 339 340 if ( preg_match( "/api.github.com/", $dirpath) ) 341 return ltrim(json_decode(join("", $lines))->tag_name, "v"); 342 334 343 // Most packages are in the form $package-n.n.n 335 344 // Occasionally there are dashes (e.g. 201-1)
Note:
See TracChangeset
for help on using the changeset viewer.