Changeset 82d0965 for lfs-latest.php
- Timestamp:
- 01/22/2021 07:05:53 PM (4 years ago)
- Branches:
- 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 8850677
- Parents:
- a35db3f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest.php
ra35db3f r82d0965 70 70 function http_get_file( $url ) 71 71 { 72 if ( ! preg_match( "/sourceforge/", $url ) ) 72 if ( ! preg_match( "/sourceforge/", $url ) && 73 ! preg_match( "/psmisc/", $url ) ) 73 74 { 74 75 exec( "curl --location --silent --max-time 30 $url", $dir ); … … 106 107 global $regex; 107 108 108 //if ( $package != "zstd" ) return 0; // Debug109 if ( $package != "psmisc" ) return 0; // Debug 109 110 110 111 if ( $package == "bc" ) $dirpath = "https://github.com/gavinhoward/bc/releases"; … … 123 124 if ( $package == "mpfr" ) $dirpath = "http://mpfr.loria.fr/mpfr-current"; 124 125 if ( $package == "ninja" ) $dirpath = "https://github.com/ninja-build/ninja/releases"; 125 //if ( $package == "procps-ng" ) $dirpath = "http://sourceforge.net/projects/procps-ng/files";126 126 if ( $package == "procps-ng" ) $dirpath = "https://gitlab.com/procps-ng/procps/-/tags"; 127 //if ( $package == "psmisc" ) $dirpath = "http://sourceforge.net/projects/$package/files";128 127 if ( $package == "psmisc" ) $dirpath = "https://gitlab.com/psmisc/psmisc/-/tags"; 129 128 if ( $package == "Python" ) $dirpath = "https://www.python.org/downloads/source/"; … … 282 281 283 282 if ( $package == "procps-ng" ) 284 return find_max( $lines, "/v\d/", "/^.*v([\d\.]+) .*$/" );283 return find_max( $lines, "/v\d/", "/^.*v([\d\.]+) .*$/" ); 285 284 286 285 if ( $package == "psmisc" ) 287 return find_max( $lines, "/ ^v/", "/^v([\d\.]+).*$/" );286 return find_max( $lines, "/v\d/", "/^.*v([\d\.]+) .*$/" ); 288 287 289 288 if ( $package == "grub" )
Note:
See TracChangeset
for help on using the changeset viewer.