Author: bdubbs
Date: Fri Jan 11 15:58:22 2019
New Revision: 20952

Log:
Update geoclue script

Modified:
   trunk/scripts/blfs-chapter17.php

Modified: trunk/scripts/blfs-chapter17.php
==============================================================================
--- trunk/scripts/blfs-chapter17.php    Fri Jan 11 13:09:06 2019        (r20951)
+++ trunk/scripts/blfs-chapter17.php    Fri Jan 11 15:58:22 2019        (r20952)
@@ -66,7 +66,7 @@
 
    array( 'pkg'     => 'geoclue',
           'match'   => '^.*$',
-          'replace' => "http://www.freedesktop.org/software/geoclue/releases"; 
),
+          'replace' => "https://gitlab.freedesktop.org/geoclue/geoclue/tags"; ),
 
    array( 'pkg'     => 'libpcap',
           'match'   => '^.*$',
@@ -180,13 +180,6 @@
       return $max;
     }
 
-    if ( $book_index == "geoclue" )
-    {
-      $lines    = http_get_file( $dirpath );
-      $dir      = find_max( $lines, '/\d\./', '/^.*(\d\.[\d\.]+)\/.*$/' );
-      $dirpath .= "/$dir";
-    }
-
     $lines = http_get_file( $dirpath );
     if ( ! is_array( $lines ) ) return $lines;
   } // End fetch
@@ -229,8 +222,8 @@
   if ( $book_index == "nghttp2" )
     return find_max( $lines, '/nghttp2/', '/^.*nghttp2 v([\d\.]+).*$/' );
 
-  if ( $book_index == "geoclue1" )
-    return find_max( $lines, '/geoclue/', '/^.*geoclue-([\d\.]+).tar.*$/' );
+  if ( $book_index == "geoclue" )
+    return find_max( $lines, '/Release/', '/^.*Release ([\d\.]+).*$/' );
 
   if ( $book_index == "procmail" )
     return find_max( $lines, '/procmail/', '/^.*procmail-([\d\.]+)\.tar.*$/' );
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to