Author: pierre
Date: Sun Feb 28 10:07:52 2016
New Revision: 3856

Log:
Fix a bug in "tree_erase",
which occurs rarely

Modified:
   jhalfs/trunk/BLFS/libs/func_dependencies
   jhalfs/trunk/README.CUSTOM

Modified: jhalfs/trunk/BLFS/libs/func_dependencies
==============================================================================
--- jhalfs/trunk/BLFS/libs/func_dependencies    Sat Feb 20 14:13:22 2016        
(r3855)
+++ jhalfs/trunk/BLFS/libs/func_dependencies    Sun Feb 28 10:07:52 2016        
(r3856)
@@ -277,15 +277,16 @@
 local file=$1
 local f
 local -a rootlink
-local -a rootlink2
+local rootlink2
 
 #echo file=$file
 rootlink=($(head -n1 $file))
 for f in $(grep '[^0-9 ]' $file | sed 's/.* //'); do
 #  echo "    f"=$f
   if [ -f ${f}.dep ]; then
-    rootlink2=($(head -n1 ${f}.dep))
-    if [[ "${rootlink2[*]}" =~ "${rootlink[*]}" ]] ; then
+    rootlink2="$(head -n1 ${f}.dep) "
+# See comment above about srootlink
+    if [[ "${rootlink2#"${rootlink[*]} " != ${rootlink2} ]] ; then
       tree_erase ${f}.dep
     fi
   fi

Modified: jhalfs/trunk/README.CUSTOM
==============================================================================
--- jhalfs/trunk/README.CUSTOM  Sat Feb 20 14:13:22 2016        (r3855)
+++ jhalfs/trunk/README.CUSTOM  Sun Feb 28 10:07:52 2016        (r3856)
@@ -200,7 +200,7 @@
 
 PKG="gpm"
 PKG_VERSION="1.20.1"
-PKG_FILE="gmp-1.20.1.tar.bz2"
+PKG_FILE="gpm-1.20.1.tar.bz2"
 URL="ftp://arcana.linux.it/pub/gpm/gpm-1.20.1.tar.bz2";
 MD5="2c63e827d755527950d9d13fe3d87692"
 for i in PATCH{1..10}; do
-- 
http://lists.linuxfromscratch.org/listinfo/alfs-log
Unsubscribe: See the above information page

Reply via email to