From 638a80f2019172d685a137dadcde2fbddc1f5039 Mon Sep 17 00:00:00 2001 From: Curtis Hovey Date: Mon, 13 Feb 2017 11:24:52 -0500 Subject: [PATCH] juju 2.1-rc1 (devel) Juju 2.1-rc1 Closes #9923. Signed-off-by: Tomasz Pajor --- Formula/juju.rb | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Formula/juju.rb b/Formula/juju.rb index c2c8c264de..afec008f9e 100644 --- a/Formula/juju.rb +++ b/Formula/juju.rb @@ -11,6 +11,11 @@ class Juju < Formula sha256 "9beb96271da0a17929a7af8dba29af789c31ab022aae07eb6444192c4255b6df" => :yosemite end + devel do + url "https://launchpad.net/juju/2.1/2.1-rc1/+download/juju-core_2.1-rc1.tar.gz" + sha256 "dde7058b904d167c671e68a6915f6448bdcb04f2102923e136e28dac15c2e229" + end + depends_on "go" => :build def install @@ -18,7 +23,11 @@ class Juju < Formula system "go", "build", "github.com/juju/juju/cmd/juju" system "go", "build", "github.com/juju/juju/cmd/plugins/juju-metadata" bin.install "juju", "juju-metadata" - bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-2.0" + if build.stable? + bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju-2.0" + else + bash_completion.install "src/github.com/juju/juju/etc/bash_completion.d/juju" + end end test do