From 97ad140b321038734b95da3080a280932459cf5d Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 12 Aug 2007 14:35:31 +0000 Subject: [PATCH] Merged r3454 from trunk. --- 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