From f6b24359d8ebe60bb78de92f626872166156d303 Mon Sep 17 00:00:00 2001 From: pedro Date: Sun, 20 Jun 2021 10:36:09 +0200 Subject: [PATCH] [type/__download] bugfix checksum not found when the checksum is not found while using __download it displays and error saying "no checksum from target" this information is wrong and confusing. In fact, the state explorer is missing a default condition, when the other conditions are not satisfied --- cdist/conf/type/__download/explorer/state | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cdist/conf/type/__download/explorer/state b/cdist/conf/type/__download/explorer/state index 68b517c5..ff984d16 100755 --- a/cdist/conf/type/__download/explorer/state +++ b/cdist/conf/type/__download/explorer/state @@ -61,6 +61,9 @@ else sum_is="sha256:$( sha256sum "$dst" | awk '{print $1}' )" ;; esac + else + echo "could not detect checksum method, check type's manual" >&2 + exit 1 fi fi