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:
parent
eb32996709
commit
7a3aa91d74
1 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue