Merge pull request #1578 from tituspijean/enh-ynh_setup_source

Output checksums if ynh_setup_source fails
This commit is contained in:
Alexandre Aubin 2023-01-31 18:17:43 +01:00 committed by GitHub
commit 456b8857ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ ynh_setup_source() {
|| ynh_die --message="$out"
# Check the control sum
echo "${src_sum} ${src_filename}" | ${src_sumprg} --check --status \
|| ynh_die --message="Corrupt source"
|| ynh_die --message="Corrupt source for ${src_filename}: Expected ${src_sum} but got $(${src_sumprg} ${src_filename} | cut --delimiter=' ' --fields=1) (size: $(du -hs ${src_filename} | cut --delimiter=' ' --fields=1))."
fi
# Keep files to be backup/restored at the end of the helper