Changeset 3781c69 for lfs-latest-git.php


Ignore:
Timestamp:
09/07/2021 09:10:29 PM (3 years ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
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, arm, bdubbs/gcc13, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
9ee05b53
Parents:
4458e3d
Message:

Remove eol spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lfs-latest-git.php

    r4458e3d r3781c69  
    3131  foreach ( $lines as $line )
    3232  {
    33      if ( ! preg_match( $regex_match, $line ) ) continue; 
     33     if ( ! preg_match( $regex_match, $line ) ) continue;
    3434
    3535     // Isolate the version and put in an array
    3636     $slice = preg_replace( $regex_replace, "$1", $line );
    37      if ( $slice == $line ) continue; 
    38 
    39      array_push( $a, $slice );     
     37     if ( $slice == $line ) continue;
     38
     39     array_push( $a, $slice );
    4040  }
    4141
     
    9999  $max           = find_max( $lines, $regex_match, $regex_replace );
    100100
    101   return "$dirpath/$max"; 
     101  return "$dirpath/$max";
    102102}
    103103
     
    113113if ( $package == "e2fsprogs"  ) $dirpath = "https://sourceforge.net/projects/e2fsprogs/files/e2fsprogs/";
    114114if ( $package == "expat"      ) $dirpath = "http://sourceforge.net/projects/expat/files";
    115 if ( $package == "elfutils"   ) $dirpath = "https://sourceware.org/ftp/elfutils"; 
    116 if ( $package == "expect"     ) $dirpath = "http://sourceforge.net/projects/expect/files"; 
     115if ( $package == "elfutils"   ) $dirpath = "https://sourceware.org/ftp/elfutils";
     116if ( $package == "expect"     ) $dirpath = "http://sourceforge.net/projects/expect/files";
    117117if ( $package == "file"       ) $dirpath = "https://github.com/file/file/releases";
    118118if ( $package == "flex"       ) $dirpath = "https://github.com/westes/flex/releases";
     
    139139
    140140  // Check for ftp
    141   if ( preg_match( "/^ftp/", $dirpath ) ) 
    142   { 
     141  if ( preg_match( "/^ftp/", $dirpath ) )
     142  {
    143143    $dirpath  = substr( $dirpath, 6 );           // Remove ftp://
    144144    $dirpath  = rtrim ( $dirpath, "/" );         // Trim any trailing slash
     
    148148
    149149    $conn = ftp_connect( $server );
    150     ftp_login( $conn, "anonymous", "" ); 
     150    ftp_login( $conn, "anonymous", "" );
    151151
    152152    // See if we need special handling
     
    167167
    168168              // Get dir listing
    169               $lines = ftp_rawlist ($conn, $path);             
     169              $lines = ftp_rawlist ($conn, $path);
    170170              $max   = find_max( $lines, $regexp, $regexp );
    171171              break;
     
    234234  }
    235235
    236   if ( $package == "attr" || 
     236  if ( $package == "attr" ||
    237237       $package == "acl"  )
    238238  {
     
    362362      }
    363363
    364       else if ( preg_match( "/systemd-man-pages/", $file ) ) continue; 
    365       else if ( preg_match( "/python/"         , $file ) ) continue; 
     364      else if ( preg_match( "/systemd-man-pages/", $file ) ) continue;
     365      else if ( preg_match( "/python/"         , $file ) ) continue;
    366366
    367367      $version = preg_replace( $pattern, "$1", $file );   // Isolate version
Note: See TracChangeset for help on using the changeset viewer.