From 14a696f32b4011a5af1bb110719b584ad4bc3904 Mon Sep 17 00:00:00 2001 From: Martin Nowak Date: Thu, 2 Mar 2017 00:38:07 +0100 Subject: [PATCH] Revert "Check whether DUB is provided by the release" --- script/install.sh | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/script/install.sh b/script/install.sh index 4cec9d41..498b5086 100755 --- a/script/install.sh +++ b/script/install.sh @@ -295,7 +295,6 @@ parse_args() { run_command() { case $1 in install) - local has_dub_included=0 check_tools curl if [ ! -f "$path/install.sh" ]; then install_dlang_installer @@ -307,11 +306,8 @@ run_command() { log "$2 already installed"; else install_compiler $2 - has_dub_included=$? - fi - if [ "$has_dub_included" -eq 0 ] ; then - install_dub fi + install_dub write_env_vars $2 if [ $(basename $SHELL) = fish ]; then @@ -402,8 +398,6 @@ resolve_latest() { } install_compiler() { - local has_dub_included=0 - # dmd-2.065, dmd-2.068.0, dmd-2.068.1-b1 if [[ $1 =~ ^dmd-2\.([0-9]{3})(\.[0-9])?(-.*)?$ ]]; then local basename="dmd.2.${BASH_REMATCH[1]}${BASH_REMATCH[2]}${BASH_REMATCH[3]}" @@ -423,10 +417,6 @@ install_compiler() { local arch="zip" fi - if [[ $ver > "2.071z" ]]; then - has_dub_included=1 - fi - if [ -n "${BASH_REMATCH[3]}" ]; then # pre-release local url="http://downloads.dlang.org/pre-releases/2.x/$ver/$basename.$arch" else @@ -453,9 +443,6 @@ install_compiler() { if [ $os != linux ] && [ $os != osx ]; then fatal "no ldc binaries available for $os" fi - if [[ $ver > "1.0z" ]]; then - has_dub_included=1 - fi download_and_unpack "$url" "$path/$1" @@ -481,8 +468,6 @@ install_compiler() { else fatal "Unknown compiler '$1'" fi - - return "$has_dub_included" } find_gpg() {