709 Commits

Author SHA1 Message Date
Adam Vandenberg
aac072c47a Tweak CurlPostDownloadStrategy 2010-06-30 10:21:56 -07:00
Adam Vandenberg
4490b739d5 Add flat-.pkg support to CurlDownloadStrategy 2010-06-30 10:14:33 -07:00
Adam Vandenberg
501fb844ab Use cp, not mv, to keep download in cache. 2010-06-28 13:14:50 -07:00
Adam Vandenberg
55b683b59a Add a download strategy that uses HTTP POST 2010-06-25 19:13:20 -07:00
Tuncer Ayaz
914a068dc8 MercurialDownloadStrategy: pull and update instead of update only 2010-06-10 12:57:20 -07:00
Tuncer Ayaz
ced8edacdc MercurialDownloadStrategy: pull and update instead of update only 2010-06-10 12:30:47 -07:00
Adam Vandenberg
9f9219a142 Subversion now supports revisions on externals.
A formula using svn can now provide a spec:
    :revisions => {...revision numbers...}
that contains a mapping of revision numbers to use
for externals.

The name of the external is keyed to the revision to
use for that external.

The symbol :trunk should be used to specify the reivsion
of the main repo.

An example from the Ffmpeg formula:
    head 'svn://svn.ffmpeg.org/ffmpeg/trunk',
        :revisions => { :trunk => 22916, 'libswscale' => 31045 }

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:36:03 -07:00
Fergal Hainey
9f2fc2ab3b More efficient SVN download that handles externals
Now makes use of `svn up` to make cache act like
a cache. Externals without a revision specified
are now checked out at HEAD, whereas before they
were ignored. Escaping arguments to backticks.
Making sure main repo is checked out before the
externals.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-06-08 12:35:31 -07:00
Adam Vandenberg
f08431b5a1 Add --cache support to hg and bzr. 2010-06-07 14:15:45 -07:00
Adam Vandenberg
eb30a8555b Add cache location support to CVS.
This allows formulaes which use CVS to support:
  brew --cache [formula]
2010-06-07 10:01:15 -07:00
Adam Vandenberg
2563b32bb6 Allow SVN to report cache location. 2010-05-07 10:38:48 -07:00
Adam Vandenberg
38d969ea7c Let GitDownloadStrategy report its cache location. 2010-05-05 21:20:11 -07:00
Adam Vandenberg
72ef9f4aaa Quote prefix for git submodules. Fixes Homebrew/homebrew#1009 2010-04-08 21:01:09 -07:00
Chris Thachuk
3c78d5cf91 Adds support for git submodules. Fixes Homebrew/homebrew#1009.
If submodules exists for a git repo then checkout their index as well
into the appropriate path.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-04-08 11:26:38 -07:00
Adam Vandenberg
0b56c62bf5 Add support for rar archives. 2010-03-31 12:10:08 -07:00
Adam Vandenberg
6586f89a29 Add md5 on 'brew create' if we can figure it out. 2010-03-22 21:19:20 -07:00
Adam Vandenberg
3555a3c18f REVERT SubversionDownloadStrategy change.
Change 45ce0c963a52293063432674d5c360ebe65254e2 was done in error.
This submit reverts that change (which will go in a future commit.)

I apologize for the inconvenience.
2010-03-01 14:14:07 -08:00
Adam Vandenberg
a9b19f0255 Move license block to separate LICENSE file. 2010-03-01 11:41:24 -08:00
Fergal Hainey
69bc0cbf67 Improvements to new SubversionDownloadStrategy
Now makes use of `svn up` to make cache act like
a cache. Externals without a revision specified
are now checked out at HEAD, whereas before they
were ignored. Escaping arguments to backticks.
Making sure main repo is checked out before the
externals.
2010-03-01 09:59:25 -08:00
Adam Vandenberg
080a7ee3dc brew --cache [formula]
This developer-oriented command lets you ask Homebrew what the cached
filename will be for a brew's tarball.
2010-02-24 11:15:12 -08:00
Graham Hughes
a4bd7c008d Don't merge flags in checkout-index
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-02-16 15:25:28 -08:00
David Höppner
d8b093f279 Bazaar download strategy 2010-02-02 13:43:44 +01:00
Adam Vandenberg
6d06b9a179 Create Download Strategy sooner in formula install code.
* Instantiate DownloadStrategy instance when creating a formula.
* Rename CurlDownloadStrategy member to clarify what it is for.
* Generate downloaded tarball name in initialize.
2010-02-01 12:50:16 -08:00
Alexis Hildebrandt
8b7b132620 Add support for compress compressed tarballs (.tar.Z)
Fixes Homebrew/homebrew#295
2009-12-31 01:55:10 +00:00
Max Howell
6e485cc9b1 If the download is a .jar, don't unzip it
Also remove special casing for two existing jar formula.
2009-12-21 18:39:01 +00:00
Max Howell
4b2e24ffcc Be verbose with git clones
It has useful progress information and is about 5 lines of text.
2009-12-19 16:22:21 +00:00
Max Howell
3930361bb2 Revert "Mercurial - use post-fix if"
This reverts commit 6a8b3cc71feccbf73225bc7dc8c5e6972de9953d.

This was a bad merge on my part.

Fixes Homebrew/homebrew#221. Fixes Homebrew/homebrew#220.
2009-12-19 15:04:15 +00:00
Adam Vandenberg
6435413656 Mercurial - use post-fix if 2009-12-17 16:27:10 +00:00
Max Howell
a4ed7ff619 Update VCS caches when installing
I held off on this as I wasn't sure it made sense. Eg. if you install you'd expect it to install the same version as before? But with HEAD formula you always want the newest, that's the point. Otherwise it should be tagged/revisioned.
2009-12-17 16:12:32 +00:00
Ben Cochran
edb046bea8 Removed cloning a specific revision from the mercurial download strategy.
When cloning a mercurial repository from a tagged revision, that tag definition
isn't actually included. This causes `hg archive -r tag_name` to fail.

Instead, just clone the repository's head and the `hg archive -r revision` will
handle getting the correct revision to for the build
2009-12-17 15:03:02 +00:00
Max Howell
64cdda87e0 Be more quiet about checkouts unless ARGV.verbose?
Fixes Homebrew/homebrew#204
2009-12-17 13:45:08 +00:00
Adam Vandenberg
02208387c2 Update comment (and spacing) in download_strategy. 2009-12-12 16:24:15 +00:00
Adam Vandenberg
d0d0ca0572 Removing deprecated class slated for removal in 0.5 2009-12-12 16:24:15 +00:00
Adam Vandenberg
c3623e1bd1 Add no-unzip download strategy; extracted from Jython/sbt. 2009-12-12 16:24:15 +00:00
Adam Vandenberg
b3c1e0aba2 Mercurial - recognize Google Code repos and support revisions. 2009-12-12 16:24:14 +00:00
Max Howell
19039471c0 Ignore ^C when cleaning up at exit 2009-12-07 17:56:47 +00:00
Max Howell
6c123b176d Fixes broken SubversionDownloadStrategy
Being able to commit parts of diffs can bite you if you aren't careful.
2009-12-04 18:16:32 +00:00
Max Howell
3eac79f905 Export the revision, checkout HEAD 2009-12-04 14:19:41 +00:00
Max Howell
277239a4dd List the options that the user has for installing Mercurial
Fixes Homebrew/homebrew#136
2009-12-02 13:21:34 +00:00
Max Howell
04f3ddeac0 Ignore stdout during GitDownloadStrategy.stage 2009-11-09 18:24:36 +00:00
Max Howell
57fc32d279 Solve the brew install, brew rm, brew install problem for HEAD formula
The problem was that git checkout -b doesn't work the second time. This simple solution works by never creating a local branch.
2009-11-07 18:22:36 +00:00
Max Howell
1fcd449c6e Show where we cached the download 2009-10-23 19:12:29 +01:00
Adam Vandenberg
eafba2261f Allow revisions on SVN checkouts. 2009-10-20 20:50:20 -07:00
Max Howell
b81ea96ca2 Reimplemented HttpDownloadStrategy needs 4 parameters now 2009-10-19 04:02:48 +01:00
Max Howell
995c2d5a13 Remove assignment to unused temporary variable 2009-10-19 04:02:48 +01:00
Jannis Leidel
ef02031d7c Fix Homebrew/homebrew#52: Add ability to checkout a branch or tag.
GitDownloadStrategy and MercurialDownloadStrategy
now can be used like this:

  head 'git://server/repo.git', :branch => 'stable'
  head 'hg://server/repo/', :tag => '1.0.4'
2009-10-19 04:02:48 +01:00
Adam Vandenberg
5a48d297f2 Remove invalid copied comment. 2009-10-08 17:21:55 -07:00
Max Howell
c130cf3e71 HttpDownloadStrategy renamed CurlDownloadStrategy
Because people didn't realise it was actually curl and thus supports eg. ftp too.
2009-10-02 20:01:23 +01:00
Austin Ziegler
668e3ee080 Adding CVS and Mercurial download strategies. 2009-09-30 18:52:12 +01:00
Ben Alpert
ad01b141b7 Don't use file, just check the magic numbers instead
Closes Homebrew/homebrew#58
2009-09-24 16:30:40 -06:00