From e010e91a6bb5ad6697fb158017b36f575bbe644f Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Mon, 4 Apr 2016 22:48:12 +0100 Subject: [PATCH] docker: block same-option dependencies --- Formula/docker.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Formula/docker.rb b/Formula/docker.rb index af6a430370..cb6a4482da 100644 --- a/Formula/docker.rb +++ b/Formula/docker.rb @@ -18,8 +18,11 @@ class Docker < Formula option "without-completions", "Disable bash/zsh completions" depends_on "go" => :build - depends_on "libtool" => :run if build.with?("experimental") - depends_on "yubico-piv-tool" => :recommended if build.with?("experimental") + + if build.with? "experimental" + depends_on "libtool" => :run + depends_on "yubico-piv-tool" => :recommended + end def install ENV["AUTO_GOPATH"] = "1"