Changeset 73d91ac for lfs-latest-git.php


Ignore:
Timestamp:
12/05/2023 05:12:55 AM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64
Children:
00de269
Parents:
6b6a1b9 (diff), dc8572f (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lfs-latest-git.php

    r6b6a1b9 r73d91ac  
    8686  exec( "curl --location --silent --max-time 30 $url", $dir );
    8787
    88   $s   = implode( "\n", $dir );
    89   $dir = strip_tags( $s );
     88  $dir = implode( "\n", $dir );
     89  if ( !preg_match( "/api.github.com/", $url) )
     90    $dir = strip_tags( $dir );
    9091  return explode( "\n", $dir );
    9192}
     
    128129if ( $package == "flex"       ) $dirpath = github("westes/flex");
    129130if ( $package == "flit_core"  ) $dirpath = "https://pypi.org/project/flit-core/";
     131if ( $package == "setuptools" ) $dirpath = "https://pypi.org/project/setuptools/";
    130132if ( $package == "gcc"        ) $dirpath = max_parent( $dirpath, "gcc-" );
    131133if ( $package == "iana-etc"   ) $dirpath = github("Mic92/iana-etc");
     
    294296     return find_max( $lines, "/flit-core /", "/^.*flit-core ([\d\.]+)$/" );
    295297
     298  if ( $package == "setuptools" )
     299     return find_max( $lines, "/setuptools /", "/^.*setuptools ([\d\.]+)$/" );
     300
    296301  if ( $package == "procps-ng" )
    297302     return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" );
Note: See TracChangeset for help on using the changeset viewer.