[email protected] wrote:
Author: krejzi Date: Thu Jun 4 04:11:20 2015 New Revision: 16082Log: Add 'pending' to the texlive output when nothing is found. Modified: trunk/scripts/blfs-chapter43.php Modified: trunk/scripts/blfs-chapter43.php ============================================================================== --- trunk/scripts/blfs-chapter43.php Thu Jun 4 04:07:53 2015 (r16081) +++ trunk/scripts/blfs-chapter43.php Thu Jun 4 04:11:20 2015 (r16082) @@ -135,7 +135,8 @@ $dirs = http_get_file( "$dirpath/" ); $dir = find_max( $dirs, "/20\d\d/", "/^.*(20\d\d).*$/" ); $lines = http_get_file( "$dirpath/$dir/" ); - return find_max( $lines, "/texlive-/", "/^.*texlive-(\d+).*$/" ); + $ver = find_max( $lines, "/texlive-/", "/^.*texlive-(\d+).*$/" ); + return ( $ver == "0" ) ? "pending" : $ver;
Thanks for both updates Armin. They look good. -- Bruce -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
