BLFS: Do not include installed packages newer than the book ones.
This commit is contained in:
parent
3938ff29ef
commit
b22cb02f39
1 changed files with 15 additions and 3 deletions
|
@ -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,7 +79,11 @@ 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
|
||||||
|
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 components
|
# Set installed version for updated meta-packages components
|
||||||
|
@ -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
|
||||||
|
|
Reference in a new issue