r3454 - jhalfs/trunk/BLFS/libs

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sun Aug 12 07:34:33 PDT 2007


Author: manuel
Date: 2007-08-12 08:34:33 -0600 (Sun, 12 Aug 2007)
New Revision: 3454

Modified:
   jhalfs/trunk/BLFS/libs/func_dependencies
Log:
BLFS: Skip installed packages newer than the book ones.

Modified: jhalfs/trunk/BLFS/libs/func_dependencies
===================================================================
--- jhalfs/trunk/BLFS/libs/func_dependencies	2007-08-12 11:11:07 UTC (rev 3453)
+++ jhalfs/trunk/BLFS/libs/func_dependencies	2007-08-12 14:34:33 UTC (rev 3454)
@@ -203,7 +203,8 @@
               * )
                   pkg_ver=$(grep "^${X11}[[:space:]]" ../packages | cut -f3)
                   inst_ver=$(grep "^${X11}[[:space:]]" ../packages | cut -f4)
-                  [ -n "${pkg_ver}" ] && [ "x${pkg_ver}" = "x${inst_ver}" ] && continue
+                  [ -n "${pkg_ver}" ] && [[ "x${pkg_ver}" = "x${inst_ver}" ]] && continue
+                  [ -n "${pkg_ver}" ] && [[ "x${pkg_ver}" < "x${inst_ver}" ]] && continue
                   ;;
         esac
         ;;
@@ -212,7 +213,8 @@
     # If DEP has been previouly installed, skip it
     pkg_ver=$(grep "^${DEP}[[:space:]]" ../packages | cut -f3)
     inst_ver=$(grep "^${DEP}[[:space:]]" ../packages | cut -f4)
-    [ -n "${pkg_ver}" ] && [ "x${pkg_ver}" = "x${inst_ver}" ] && continue
+    [ -n "${pkg_ver}" ] && [[ "x${pkg_ver}" = "x${inst_ver}" ]] && continue
+    [ -n "${pkg_ver}" ] && [[ "x${pkg_ver}" < "x${inst_ver}" ]] && continue
 
     #------------------
     # Prevent circular dependencies




More information about the alfs-log mailing list