Author: bdubbs
Date: Thu Oct 4 13:11:27 2018
New Revision: 20576
Log:
Fix script for bind-utilities
Modified:
trunk/scripts/blfs-chapter14.php
Modified: trunk/scripts/blfs-chapter14.php
==============================================================================
--- trunk/scripts/blfs-chapter14.php Thu Oct 4 12:34:38 2018 (r20575)
+++ trunk/scripts/blfs-chapter14.php Thu Oct 4 13:11:27 2018 (r20576)
@@ -124,10 +124,10 @@
$position = strrpos( $dirpath, "/" );
$dirpath = substr ( $dirpath, 0, $position ); // Up 1
$lines1 = http_get_file( "$dirpath/" );
- $dir = find_max( $lines1, "/\d$/", "/^.* ([\d\.P\-]+)$/" );
+ $dir = find_even_max( $lines1, "\.[\d\.P-]+\s*$/", "/^.*
(\d\.[\d\.P-]+)$/" );
$dirpath .= "/$dir/";
$lines2 = http_get_file( $dirpath );
- return find_max( $lines2, "/bind-/", "/^.*bind-(\d+[\d\.P\-]+).tar.*$/"
);
+ return find_max( $lines2, "/bind-9/", "/^.*bind-(\d+[\d\.P\-]+).tar.*$/"
);
}
if ( $book_index == "dhcp" )
--
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page