aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-12 10:34:18 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-04-12 10:34:18 +0000
commit076d5f46d733aaa9652cca71a0900a274ed43d02 (patch)
tree704362269453508c7566a71c0074004825eb197e
parent6c9815756b157005151d2203cd5765ed79da33cc (diff)
downloadpaludis-076d5f46d733aaa9652cca71a0900a274ed43d02.tar.gz
paludis-076d5f46d733aaa9652cca71a0900a274ed43d02.tar.xz
Check for openssl before calling it. Display notices when skipping digest checks
-rw-r--r--ebuild/builtin_fetch.bash19
1 files changed, 12 insertions, 7 deletions
diff --git a/ebuild/builtin_fetch.bash b/ebuild/builtin_fetch.bash
index 62a6df1..311f9b0 100644
--- a/ebuild/builtin_fetch.bash
+++ b/ebuild/builtin_fetch.bash
@@ -88,22 +88,27 @@ builtin_fetch()
RMD160)
if [[ -f "${DISTDIR}/${line[2]}" ]] ; then
- ebegin "Checking rmd160 for ${line[2]}"
- sum=$(openssl dgst -rmd160 ${DISTDIR}/${line[2]} | cut -d '=' -f2 )
- if [[ "${sum# }" == "${line[1]}" ]] ; then
- eend 0
+ if type openssl &>/dev/null ; then
+ ebegin "Checking rmd160 for ${line[2]}"
+ sum=$(openssl dgst -rmd160 ${DISTDIR}/${line[2]} | cut -d '=' -f2 )
+ if [[ "${sum# }" == "${line[1]}" ]] ; then
+ eend 0
+ else
+ eend 1
+ badfetch="${badfetch} ${line[2]}"
+ fi
else
- eend 1
- badfetch="${badfetch} ${line[2]}"
+ einfo "Can't check rmd160 for ${line[2]}"
fi
fi
;;
SHA256)
+ einfo "Can't check sha256 for ${line[2]}"
;;
*)
- ebuild_section "Skipping unknown digest '${line[0]}'"
+ einfo "Skipping unknown digest '${line[0]}' for ${line[2]}"
;;
esac
done < "${FILESDIR}"/digest-${PN}-${PVR%-r0}