Commit d66cd067 authored by Thomas Petazzoni's avatar Thomas Petazzoni Committed by Peter Korsgaard
Browse files

dependencies: check that SSL certificates are installed



Some packages are hosted on https:// servers, and wget only works on
these if the SSL certificates are installed. For example, downloading
the kernel sources from kernel.org requires those SSL certificates to
be installed.

[Peter: fix typo]
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 876e91dc
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -200,3 +200,12 @@ if ! perl -e "require Data::Dumper" > /dev/null 2>&1 ; then
    /bin/echo -e "On Debian/Ubuntu distributions, install the 'perl' package."
    exit 1
fi

# Check that we have the SSL certificates to make https:// downloads
# work.
if ! test -d /etc/ssl/certs; then
    /bin/echo -e "Your system lacks Common CA certificates for SSL."
    /bin/echo -e "This prevents https:// downloads from succeeding."
    /bin/echo -e "On Debian/Ubuntu distributions, install 'ca-certificates' package."
    exit 1
fi