From 5e091a2b7ea155906a47ee36c59a3aa65933ef3a Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 12 Aug 2007 14:34:33 +0000 Subject: [PATCH] BLFS: Skip installed packages newer than the book ones. --- BLFS/libs/func_dependencies | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BLFS/libs/func_dependencies b/BLFS/libs/func_dependencies index 1de1e46..773e3dc 100644 --- a/BLFS/libs/func_dependencies +++ b/BLFS/libs/func_dependencies @@ -203,7 +203,8 @@ inline_doc * ) 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 @@ inline_doc # 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