aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2010-09-21 21:25:33 -0700
committerAdam Vandenberg2010-09-21 21:28:29 -0700
commit57cd2dc5abb4a9db6519023e5806dd212f0a39d5 (patch)
tree85cfae4893e6ae4b886dcdd6d5f26b56019ef404 /Library/Homebrew
parent8f5d3af6628c16e913d9b2a3fd96f00c62833823 (diff)
downloadhomebrew-57cd2dc5abb4a9db6519023e5806dd212f0a39d5.tar.bz2
ImageMagick - use svn repo instead of tarballs
The ImageMagick mirrors like to drop old tarballs, which means that our formula breaks whenever the version we're using disappears. So I've switched to using their SVN repo (and added a --HEAD build.) Caveat: Their SVN repo is only served over https, with a bad cert, so this brew know has a custom SVN download strategy that auto-accepts that cert. If this bothers you, get ImageMagick to fix their cert upstream (or let us know where a stable tarball mirror lives.)
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/download_strategy.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index e57c2fc80..767a26d15 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -198,12 +198,16 @@ class SubversionDownloadStrategy <AbstractDownloadStrategy
end
end
+ def _fetch_command svncommand, url, target
+ [svn, svncommand, '--force', url, target]
+ end
+
def fetch_repo target, url, revision=nil, ignore_externals=false
# Use "svn up" when the repository already exists locally.
# This saves on bandwidth and will have a similar effect to verifying the
# cache as it will make any changes to get the right revision.
svncommand = target.exist? ? 'up' : 'checkout'
- args = [svn, svncommand, '--force', url, target]
+ args = _fetch_command svncommand, url, target
args << '-r' << revision if revision
args << '--ignore-externals' if ignore_externals
quiet_safe_system *args