diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-03-23 22:26:46 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-03-24 14:00:31 +0100 |
commit | d66cd067f3dc3d5e2479e1e8c05f24fd82329f7a (patch) | |
tree | 97963bb434f257297b22242f8f0781739aa04d47 /support/dependencies | |
parent | 876e91dc447d874ac17ea1038e836655f24e6750 (diff) | |
download | buildroot-novena-d66cd067f3dc3d5e2479e1e8c05f24fd82329f7a.tar.gz buildroot-novena-d66cd067f3dc3d5e2479e1e8c05f24fd82329f7a.zip |
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: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'support/dependencies')
-rwxr-xr-x | support/dependencies/dependencies.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/support/dependencies/dependencies.sh b/support/dependencies/dependencies.sh index 0b44c5afb..ce4d9e17b 100755 --- a/support/dependencies/dependencies.sh +++ b/support/dependencies/dependencies.sh @@ -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 |