Author: bdubbs Date: Sat Apr 16 14:17:01 2016 New Revision: 17264 Log: Fix p7zip script to accomodate upstream typo
Modified: trunk/scripts/blfs-chapter12.php Modified: trunk/scripts/blfs-chapter12.php ============================================================================== --- trunk/scripts/blfs-chapter12.php Sat Apr 16 13:05:32 2016 (r17263) +++ trunk/scripts/blfs-chapter12.php Sat Apr 16 14:17:01 2016 (r17264) @@ -17,7 +17,7 @@ $ignores = array(); -//$current="at"; +//$current="p7zip"; $regex = array(); $regex[ 'acpid' ] = "/^.*Download acpid-(\d[\d\.]+\d).tar.*$/"; @@ -183,10 +183,10 @@ if ( $book_index == "udisks1" ) return find_max( $lines, '/udisks/', '/^.*udisks-(\d[\d\.]*\d).tar.*$/' ); + # Needs a space in [\d\. ]+ becasue of an upstream typo if ( $book_index == "p7zip" ) - { - return find_max( $lines, '/\d\./', '/^\s*([\d\.]+)\s*$/' ); - } + $max = find_max( $lines, '/\d\./', '/^\s*([\d\. ]+)\s*$/' ); + return str_replace( " ", "", $max ); if ( $book_index == "unzip" || $book_index == "zip" ) -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page