Changeset 864c66d


Ignore:
Timestamp:
04/01/2023 10:30:14 PM (13 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib
Children:
46ada72
Parents:
c33354c (diff), fc9a319 (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:

Automatic merge of trunk into multilib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lfs-latest-git.php

    rc33354c r864c66d  
    104104  $lines = http_get_file( $dirpath );
    105105
    106   $regex_match   = "#${prefix}[\d\.]+/#";
    107   $regex_replace = "#^.*(${prefix}[\d\.]+)/.*$#";
     106  $regex_match   = "#{$prefix}[\d\.]+/#";
     107  $regex_replace = "#^.*({$prefix}[\d\.]+)/.*$#";
    108108  $max           = find_max( $lines, $regex_match, $regex_replace );
    109109
     
    127127if ( $package == "file"       ) $dirpath = "https://github.com/file/file/tags";
    128128if ( $package == "flex"       ) $dirpath = "https://github.com/westes/flex/releases";
     129if ( $package == "flit_core"  ) $dirpath = "https://pypi.org/project/flit-core/";
    129130if ( $package == "gcc"        ) $dirpath = max_parent( $dirpath, "gcc-" );
    130131if ( $package == "iana-etc"   ) $dirpath = "https://github.com/Mic92/iana-etc/releases";
     
    309310     return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" );
    310311
     312  if ( $package == "flit_core" )
     313     return find_max( $lines, "/flit-core /", "/^.*flit-core ([\d\.]+)$/" );
     314
    311315  if ( $package == "procps-ng" )
    312316     return find_max( $lines, "/v\d/", "/^.*v([\d\.]+)$/" );
     
    504508      $v    = get_packages( $pkg, $dir );
    505509      $flag = ( $vers[ $pkg ] != $v ) ? "*" : "";
    506       echo "<tr><td>$pkg</td> <td>${vers[ $pkg ]}</td> <td>$v</td> <td>$flag</td></tr>\n";
     510      echo "<tr><td>$pkg</td> <td>{$vers[ $pkg ]}</td> <td>$v</td> <td>$flag</td></tr>\n";
    507511   }
    508512
Note: See TracChangeset for help on using the changeset viewer.