saltstack: Fix HEAD versioning

SaltStack needs its repositories fully cloned to provide proper versioning.

Closes Homebrew/homebrew#24357.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Pedro Algarvio 2013-11-15 18:08:49 +00:00 committed by Adam Vandenberg
parent eb32996709
commit 7a3aa91d74

View file

@ -1,11 +1,24 @@
require 'formula'
class SaltHeadDownloadStrategy < GitDownloadStrategy
# We need to make a local clone so we can't use "--depth 1"
def support_depth?
false
end
def stage
@clone.cd {reset}
safe_system 'git', 'clone', @clone, '.'
end
end
class Saltstack < Formula
homepage 'http://www.saltstack.org'
url 'https://pypi.python.org/packages/source/s/salt/salt-0.17.2.tar.gz'
sha1 'd2568cb72a0eab21f273aa8ab36eacd6f1e58dc9'
head 'https://github.com/saltstack/salt.git', :branch => :develop
head 'https://github.com/saltstack/salt.git', :branch => :develop,
:using => SaltHeadDownloadStrategy
depends_on :python
depends_on 'swig' => :build