From 553d56d4569da502d2755090257e79553318c862 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 31 Jan 2017 16:39:13 -0800 Subject: [PATCH] install dirmngr if needed as of Ubuntu Yakkety, dirmngr is now in a separate package (see https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1634464) this patch updates the install script to install the dirmngr package if it's not installed. Signed-off-by: Sebastiaan van Stijn (cherry picked from commit f5263c8074c091555592787e32319a6a4f39e650) Signed-off-by: Victor Vieux --- hack/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/hack/install.sh b/hack/install.sh index 23f202319f..cc20d69396 100644 --- a/hack/install.sh +++ b/hack/install.sh @@ -406,11 +406,17 @@ do_install() { ( set -x; $sh_c 'sleep 3; apt-get install -y -q curl ca-certificates' ) curl='curl -sSL' fi - if [ ! -e /usr/bin/gpg ]; then + if ! command -v gpg > /dev/null; then apt_get_update ( set -x; $sh_c 'sleep 3; apt-get install -y -q gnupg2 || apt-get install -y -q gnupg' ) fi + # dirmngr is a separate package in ubuntu yakkety; see https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1634464 + if ! command -v dirmngr > /dev/null; then + apt_get_update + ( set -x; $sh_c 'sleep 3; apt-get install -y -q dirmngr' ) + fi + ( set -x for key_server in $key_servers ; do