BLFS: Do not include installed packages newer than the book ones.

This commit is contained in:
Manuel Canales Esparcia 2007-08-12 11:09:51 +00:00
parent 3938ff29ef
commit b22cb02f39

View file

@ -47,7 +47,11 @@ do
if [ $PKG_DIR = "." ]; then if [ $PKG_DIR = "." ]; then
SET_COMMENT=y SET_COMMENT=y
# Do not include previously installed packages # Do not include previously installed packages
if [ -n "${PKG_VER}" ] && [ "x${PKG_VER}" = "x${INST_VER}" ]; then if [ -n "${PKG_VER}" ] && [[ "x${PKG_VER}" = "x${INST_VER}" ]]; then
continue
fi
# Do not include installed packages newer than the book ones
if [ -n "${PKG_VER}" ] && [[ "x${PKG_VER}" = "x${INST_VER}" ]]; then
continue continue
fi fi
# Set installed version for updated meta-packages # Set installed version for updated meta-packages
@ -75,9 +79,13 @@ EOF
PKG_VER=$(grep "^${PKG_NAME}[[:space:]]" $inFile | cut -f3) PKG_VER=$(grep "^${PKG_NAME}[[:space:]]" $inFile | cut -f3)
INST_VER=$(grep "^${PKG_NAME}[[:space:]]" $inFile | cut -f4) INST_VER=$(grep "^${PKG_NAME}[[:space:]]" $inFile | cut -f4)
# Skip installed meta-package components # Skip installed meta-package components
if [ -n "${PKG_VER}" ] && [ "x${PKG_VER}" = "x${INST_VER}" ]; then if [ -n "${PKG_VER}" ] && [[ "x${PKG_VER}" = "x${INST_VER}" ]]; then
continue continue
fi fi
# Do not include installed packages newer than the book ones
if [ -n "${PKG_VER}" ] && [[ "x${PKG_VER}" = "x${INST_VER}" ]]; then
continue
fi
# Set installed version for updated meta-packages components # Set installed version for updated meta-packages components
[ -n "${INST_VER}" ] && INST_STRING="[installed ${INST_VER}]" [ -n "${INST_VER}" ] && INST_STRING="[installed ${INST_VER}]"
( (
@ -114,7 +122,11 @@ EOF
esac esac
# Skip installed packages # Skip installed packages
if [ -n "${PKG_VER}" ] && [ "x${PKG_VER}" = "x${INST_VER}" ]; then if [ -n "${PKG_VER}" ] && [[ "x${PKG_VER}" = "x${INST_VER}" ]]; then
continue
fi
# Do not include installed packages newer than the book ones
if [ -n "${PKG_VER}" ] && [[ "x${PKG_VER}" = "x${INST_VER}" ]]; then
continue continue
fi fi
# Set installed version for updated packages # Set installed version for updated packages