Changeset 19ff1da
- Timestamp:
- 07/03/2023 09:22:17 AM (12 months ago)
- Branches:
- 12.0, 12.0-rc1, 12.1, 12.1-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/mips64el, xry111/update-glibc
- Children:
- bf7d328
- Parents:
- 48834cf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lfs-latest-git.php
r48834cf r19ff1da 70 70 function http_get_file( $url ) 71 71 { 72 if ( ! preg_match( "/sourceforge/", $url ) && 73 ! preg_match( "/mpfr/", $url ) && 74 ! preg_match( "/psmisc/", $url ) ) 75 { 76 exec( "curl --location --silent --max-time 30 $url", $dir ); 77 78 $s = implode( "\n", $dir ); 79 $dir = strip_tags( $s ); 80 return explode( "\n", $dir ); 81 } 82 else if ( preg_match( "/mpfr/", $url ) ) 72 if ( preg_match( "/mpfr/", $url ) ) 83 73 { 84 74 # There seems to be a problem with the mpfs certificate … … 88 78 return explode( "\n", $dir ); 89 79 } 90 else 80 81 if ( preg_match( "/sourceforge/", $url ) || 82 preg_match( "/psmisc/", $url ) ) 91 83 { 92 84 exec( "lynx -dump $url 2>/dev/null", $lines ); 93 85 return $lines; 94 86 } 87 88 exec( "curl --location --silent --max-time 30 $url", $dir ); 89 90 $s = implode( "\n", $dir ); 91 $dir = strip_tags( $s ); 92 return explode( "\n", $dir ); 95 93 } 96 94
Note:
See TracChangeset
for help on using the changeset viewer.