Author: bdubbs
Date: Thu Dec 10 09:30:00 2020
New Revision: 23971

Log:
Fix currency for several packages due to changes in gnome site mirroring.

Modified:
   trunk/scripts/blfs-chapter06.php
   trunk/scripts/blfs-chapter09.php
   trunk/scripts/blfs-chapter14.php
   trunk/scripts/blfs-chapter26.php

Modified: trunk/scripts/blfs-chapter06.php
==============================================================================
--- trunk/scripts/blfs-chapter06.php    Wed Dec  9 21:45:36 2020        (r23970)
+++ trunk/scripts/blfs-chapter06.php    Thu Dec 10 09:30:00 2020        (r23971)
@@ -30,7 +30,7 @@
 
   array( 'pkg'     => 'gedit',
          'match'   => '^.*$', 
-         'replace' => "http://ftp.gnome.org/pub/gnome/sources/gedit"; ),
+         'replace' => "https://download.gnome.org/sources/gedit/"; ),
 
   array( 'pkg'     => 'vim',
          'match'   => '^.*$', 
@@ -125,7 +125,7 @@
       }
     }
 
-    $lines = http_get_file( "$dirpath/$major.$minor" );
+    $lines = http_get_file( "$dirpath/$major.$minor/" );
     return find_max( $lines, '/gedit/', '/^.*gedit-([\d\.]+).tar.*$/' );
   }
 

Modified: trunk/scripts/blfs-chapter09.php
==============================================================================
--- trunk/scripts/blfs-chapter09.php    Wed Dec  9 21:45:36 2020        (r23970)
+++ trunk/scripts/blfs-chapter09.php    Thu Dec 10 09:30:00 2020        (r23971)
@@ -319,6 +319,19 @@
       $dirpath .= "/$dir";
     }
 
+    if ( $book_index == "gspell" )
+    {
+      $dirpath  = rtrim  ( $dirpath, "/" );    // Trim any trailing slash
+      $position = strrpos( $dirpath, "/" );
+      $dirpath  = substr ( $dirpath, 0, $position );
+      $lines1 = http_get_file( $dirpath );
+      $dir = find_even_max( $lines1, '/^[\d\.]+\/.*$/', '/^([\d\.]+)\/.*$/' );
+
+      $lines = http_get_file( "$dirpath/" );
+      $dir = find_even_max( $lines, "/^\d\./", "/^(\d[\d\.]*)\/.*$/" );
+      $dirpath .= "/$dir/";
+    }
+
     if ( $book_index == "qca" )
     {
       $lines = http_get_file( "$dirpath" );

Modified: trunk/scripts/blfs-chapter14.php
==============================================================================
--- trunk/scripts/blfs-chapter14.php    Wed Dec  9 21:45:36 2020        (r23970)
+++ trunk/scripts/blfs-chapter14.php    Thu Dec 10 09:30:00 2020        (r23971)
@@ -54,7 +54,7 @@
 
    array( 'pkg'     => 'NetworkManager',
           'match'   => '^.*$', 
-          'replace' => "http://ftp.gnome.org/pub/gnome/sources/NetworkManager"; 
),
+          'replace' => "https://download.gnome.org/sources/NetworkManager"; ),
 
    array( 'pkg'     => 'ntp',
           'match'   => '^.*$', 
@@ -159,8 +159,7 @@
     if ( $book_index == "NetworkManager" )
     {
       // Get the max directory and adjust the directory path
-      $dirpath  = rtrim  ( $dirpath, "/" );    // Trim any trailing slash
-      $lines1   = http_get_file( $dirpath );
+      $lines1   = http_get_file( "$dirpath/" );
       $dir      = find_even_max( $lines1, "/\d[\d\.]+/", 
"/^\s*(\d[\d\.]+).*$/" );
       $dirpath .= "/$dir/";
     }

Modified: trunk/scripts/blfs-chapter26.php
==============================================================================
--- trunk/scripts/blfs-chapter26.php    Wed Dec  9 21:45:36 2020        (r23970)
+++ trunk/scripts/blfs-chapter26.php    Thu Dec 10 09:30:00 2020        (r23971)
@@ -42,7 +42,7 @@
 
    array( 'pkg'     => 'adwaita-icon-theme',
           'match'   => '^.*$', 
-          'replace' => 
"https://ftp.gnome.org/pub/gnome/sources/adwaita-icon-theme"; ),
+          'replace' => 
"https://download.gnome.org/sources/adwaita-icon-theme/"; ),
 
    array( 'pkg'     => 'oxygen-icons5',
           'match'   => '^.*$', 
@@ -131,7 +131,7 @@
   if ( $book_index == "adwaita-icon-theme" )
   {
     $dir = find_even_max( $lines, "/^\d/", "/^([\d\.]+)\/.*$/" );
-    $lines = http_get_file( "$dirpath/$dir" );
+    $lines = http_get_file( "$dirpath/$dir/" );
     return find_max( $lines, '/theme/', '/^.*theme-([\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