From 2718053f5598f89309521aae45e99d01bb7d2ac3 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 14 Oct 2021 08:53:29 +0200 Subject: [PATCH] Custom tools: prevent a warning if no md5sum for patches --- common/libs/func_custom_pkgs | 2 +- common/libs/func_download_pkgs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common/libs/func_custom_pkgs b/common/libs/func_custom_pkgs index d865f98..b671446 100644 --- a/common/libs/func_custom_pkgs +++ b/common/libs/func_custom_pkgs @@ -110,7 +110,7 @@ add_CustomToolsURLS() { # Add any users supplied scripts URL informat echo "${URL} ${BLFS_SERVER}${PKG}/${PKG_FILE} ${MD5}" >> urls.lst.tmp # Add any patches.. for PATCH in PATCH{1..10}; do - [[ -n ${!PATCH} ]] && echo "dummy-url ${!PATCH}" >> urls.lst.tmp + [[ -n ${!PATCH} ]] && echo "dummy-url ${!PATCH} CUSTOM-PATCH-MD5SUM" >> urls.lst.tmp done done cat urls.lst.tmp >> $BUILDDIR/sources/urls.lst diff --git a/common/libs/func_download_pkgs b/common/libs/func_download_pkgs index 041a947..3cd5707 100644 --- a/common/libs/func_download_pkgs +++ b/common/libs/func_download_pkgs @@ -80,6 +80,7 @@ get_sources() { # Download file, write name to MISSING_FILES.DMP if [[ $BOOKMD5 = "BOOTSCRIPTS-MD5SUM" ]] && continue [[ $BOOKMD5 = "UDEV-MD5SUM" ]] && continue [[ $BOOKMD5 = "LFS-NETSCRIPTS-MD5SUM" ]] && continue + [[ $BOOKMD5 = "CUSTOM-PATCH-MD5SUM" ]] && continue # IF the md5sum does not match the existing files if ! echo "$MD5" | md5sum -c - >/dev/null ; then