Author: bdubbs Date: Tue Oct 2 14:04:17 2018 New Revision: 20555 Log: Fix bind durrency
Modified: trunk/scripts/blfs-chapter20.php trunk/scripts/blfs-include.php Modified: trunk/scripts/blfs-chapter20.php ============================================================================== --- trunk/scripts/blfs-chapter20.php Mon Oct 1 18:38:06 2018 (r20554) +++ trunk/scripts/blfs-chapter20.php Tue Oct 2 14:04:17 2018 (r20555) @@ -122,7 +122,7 @@ $position = strrpos( $dirpath, "/" ); $dirpath = substr ( $dirpath, 0, $position ); // Up 1 $lines1 = http_get_file( "$dirpath/" ); - $dir = find_max( $lines1, "/\.[\d\.P-]+\s*$/", "/^.* (\d\.[\d\.P-]+)$/" ); + $dir = find_even_max( $lines1, "/\.[\d\.P-]+\s*$/", "/^.* (\d\.[\d\.P-]+)$/" ); $dirpath .= "/$dir"; $lines2 = http_get_file( "$dirpath/" ); Modified: trunk/scripts/blfs-include.php ============================================================================== --- trunk/scripts/blfs-include.php Mon Oct 1 18:38:06 2018 (r20554) +++ trunk/scripts/blfs-include.php Tue Oct 2 14:04:17 2018 (r20555) @@ -77,8 +77,11 @@ if ( "x$slice" == "x$line" ) continue; + // Remove trailing things like -P2 + $slice1 = preg_replace( "/^(.*)-.*$/", "$1", $slice ); + // Skip odd numbered minor versions and minors > 80 - list( $major, $minor ) = explode( ".", $slice . ".0", 2 ); + list( $major, $minor, $other ) = explode( ".", $slice1 . ".0", 3 ); if ( $minor % 2 == 1 ) continue; if ( $minor > 80 ) continue; -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page