CLFS_PATCHES_LIST=${LFS_PKG_DIR}/patches-list-clfs.html
HV_PATCHES_LIST=${LFS_PKG_DIR}/patches-list-hv.html
CLFS_PATCHES_LIST=${LFS_PKG_DIR}/patches-list-clfs.html
HV_PATCHES_LIST=${LFS_PKG_DIR}/patches-list-hv.html
# We must search for a patch beginning with either a slash or a " to avoid
# the possibility of having another package name within a patch name:
# if patch = Mesalib-8.0.4-llvm-3.1-fixes-1.patch
# then we could erroneously try to download patch "llvm-3.1-fixes-1.patch"
local PATCHES_FOUND=$(cat ${PATCHES_LIST} | \
egrep "\"${PACK_URL}-|/${PACK_URL}-" | \
# We must search for a patch beginning with either a slash or a " to avoid
# the possibility of having another package name within a patch name:
# if patch = Mesalib-8.0.4-llvm-3.1-fixes-1.patch
# then we could erroneously try to download patch "llvm-3.1-fixes-1.patch"
local PATCHES_FOUND=$(cat ${PATCHES_LIST} | \
egrep "\"${PACK_URL}-|/${PACK_URL}-" | \
- wget_wrapper ${PATCHES_URL} ${PATCH_NAME}
+ # Fetch patch only if it is not blacklisted!
+ local BL=$(cat ${PATCHES_BLACKLIST} | \
+ egrep "${PATCH_NAME}")
+
+ if [ "x${BL}" == "x" ]; then
+ wget_wrapper ${PATCHES_URL} ${PATCH_NAME}
+ else
+ MSGSTRING="Patch ${PATCH_NAME} blacklisted" print_status warning
+ fi