X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions%2Ffpkg;h=39717d10086c976750d010c57921e30e4804e5dd;hb=36c59f171f580d38b7d4ec06d5ce11bfcb89796e;hp=296bad87f6d24e682d6e1b7bd9d4a29a5d8686ed;hpb=83e6cd311887c77c34b40c30966e957b77bab3b9;p=hvlinux.git diff --git a/functions/fpkg b/functions/fpkg index 296bad8..39717d1 100644 --- a/functions/fpkg +++ b/functions/fpkg @@ -16,6 +16,8 @@ BLFS_PATCHES_LIST=${LFS_PKG_DIR}/patches-list-blfs.html CLFS_PATCHES_LIST=${LFS_PKG_DIR}/patches-list-clfs.html HV_PATCHES_LIST=${LFS_PKG_DIR}/patches-list-hv.html +PATCHES_BLACKLIST=../config/patches.blacklist + # Test if the given file extension correspond to a compressed archive # Arg. #1: File extension is_extension_archive() @@ -125,6 +127,8 @@ wget_wrapper() fi if [ ${wget_status} -ne 0 ]; then + echo "Error: wget returned error status ${wget_status}" >> \ + ${LFS_LOG_FILE} remove_partial_file ${LFS_PKG_DIR}/${SOURCE} return 1 fi @@ -134,6 +138,7 @@ wget_wrapper() # Just to be sure, test if downloaded file is really an archive: if ! is_archive ${LFS_PKG_DIR}/${SOURCE}.part; then # Partial failure if file is invalid. + echo "Error: failed archive test" >> ${LFS_LOG_FILE} remove_partial_file ${LFS_PKG_DIR}/${SOURCE} return 2 fi @@ -245,7 +250,15 @@ static_checkpatch() PATCH_NAME=$(echo ${p} | sed s!%2B!\+!g) if [ ! -f ${LFS_PKG_DIR}/${PATCH_NAME} ]; then - 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 fi done fi @@ -484,7 +497,7 @@ fpkg() fi if [ -z "${FILE_EXT}" ]; then # Default file extension is tar.gz - FILE_EXT="tar.gz" + FILE_EXT="tar.xz" fi ;; gnome)