[Commits] [SCM] claws-win32-installer branch, gtk2, updated. 3.19.1-1-2-g51dab2e
jonathan at claws-mail.org
jonathan at claws-mail.org
Wed Nov 30 06:17:16 CET 2022
The branch, gtk2 has been updated
via 51dab2ec03155c20a933ec170a0b5ed5a3d16da3 (commit)
via 5321709378ec7ed63beb6c59dd59a5a01b49d576 (commit)
from 2a96311926b6647d39afafb09c3304fb31cec14f (commit)
Summary of changes:
Makefile.am | 2 ++
packages/download.sh | 39 ++++++++++++++++++++++++++++++---------
2 files changed, 32 insertions(+), 9 deletions(-)
- Log -----------------------------------------------------------------
commit 51dab2ec03155c20a933ec170a0b5ed5a3d16da3
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date: Tue Nov 29 23:03:03 2022 -0700
Include build-aux scripts in make dist
diff --git a/Makefile.am b/Makefile.am
index f8a96d0..37814dc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,6 +24,8 @@ DISTCHECK_CONFIGURE_FLAGS = --host=i686-w64-mingw32
SUBDIRS = po src
EXTRA_DIST = autogen.sh doc patches \
+ build-aux/clean.sh \
+ build-aux/pkg.sh \
packages/download.sh \
packages/mk-ca-bundle.pl \
packages/packages.current
commit 5321709378ec7ed63beb6c59dd59a5a01b49d576
Author: Jonathan Boeing <jonathan at claws-mail.org>
Date: Mon Nov 28 01:16:46 2022 -0700
Improve download error handling
diff --git a/packages/download.sh b/packages/download.sh
index 74ed224..88cf24b 100755
--- a/packages/download.sh
+++ b/packages/download.sh
@@ -2,6 +2,7 @@
failed_downloads=""
failed_hash=""
+skipped_hash=""
failed_download () {
failed_downloads="$failed_downloads $name"
@@ -82,14 +83,17 @@ gen_cert_bundle () {
return 1
fi
- ./mk-ca-bundle.pl -f -n ca-certificates.crt
- if [[ $? -ne 0 ]]; then
- printf "\nError: Failed to generate CA certificate bundle\n"
+ printf "%s" "$skipped_hash" | grep -qw "certdata"
+ if [[ $? -eq 0 ]]; then
+ printf "\nError: SHA256 verification skipped for CA certificate data\n"
return 1
fi
+
+ ./mk-ca-bundle.pl -f -n ca-certificates.crt
}
pushd "${pkg_root}" > /dev/null || exit 1
+ret=0
current=1
total=$(sed -e '/^#/d' -e '/^$/d' packages.current | wc -l)
@@ -105,10 +109,15 @@ do
exit 1
fi
- printf "%s *%s" "$hash" "$file" | sha256sum -c
- if [[ $? != 0 ]]; then
- printf "Error while checking sha256sum for %s package\n" "$name"
- failed_hash="$failed_hash $name"
+ if [[ -z "$hash" ]]; then
+ printf "No hash specified - Skipping sha256sum for %s package\n" "$name"
+ skipped_hash="$skipped_hash $name"
+ else
+ printf "%s *%s" "$hash" "$file" | sha256sum -c
+ if [[ $? != 0 ]]; then
+ printf "Error while checking sha256sum for %s package\n" "$name"
+ failed_hash="$failed_hash $name"
+ fi
fi
(( current++ ))
@@ -117,14 +126,26 @@ done < <(sed -e '/^#/d' -e '/^$/d' packages.current)
# Generate the ca-certificates.crt bundle
gen_cert_bundle
+if [[ $? -ne 0 ]]; then
+ printf "\n\033[31mError:\033[0m Failed to generate CA certificate bundle\n"
+ ret=1
+fi
if [[ -n "$failed_downloads" ]]; then
- printf "\nError: Failed to download these packages: %s\n" "$failed_downloads"
+ printf "\n\033[31mError:\033[0m Failed to download these packages: %s\n" "$failed_downloads"
+ ret=1
fi
if [[ -n "$failed_hash" ]]; then
- printf "\nError: SHA256 verification failed for these packages: %s\n" "$failed_hash"
+ printf "\n\033[31mError:\033[0m SHA256 verification failed for these packages: %s\n" "$failed_hash"
+ ret=1
+fi
+
+if [[ -n "$skipped_hash" ]]; then
+ printf "\n\033[33mWarning:\033[0m SHA256 verification skipped for these packages: %s\n" "$skipped_hash"
+ ret=1
fi
popd > /dev/null
+exit $ret
-----------------------------------------------------------------------
hooks/post-receive
--
Installer sources for Claws Mail Windows port
More information about the Commits
mailing list