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
Max Howell
44a1fa418e
Use full paths to all system utilities
...
Otherwise you run the risk of not running the exact version / make of the utility you planned.
Fixes Homebrew/homebrew#48
Really we need to do this formula too, so I guess a make and cmake function are on the way…
2009-09-24 18:26:24 +01:00
Max Howell
2149d9035a
Delete the partial download with any exception
...
Don't delete it if it doesn't exist.
2009-09-17 18:42:56 +01:00
Max Howell
de620e4396
No spurious error due to Interrupt during curl
...
Only delete the file that is downloaded if an error occurs while downloading it.
2009-09-05 20:47:15 +01:00
Max Howell
5eb51cb766
If the download fails, delete the half-file
...
Otherwise next time it will assume the half-file is the whole file and fail
the md5 check.
2009-09-02 23:24:14 +01:00
Max Howell
422ec29363
Tests for Pathname+Yeast
...
I removed the rename and mv functions as when I wrote the tests I realised the function implied the pathname object would be updated to reflect the moved or renamed file. However that cannot be done. Also frankly I think writing it out in full makes clearer code.
2009-09-02 15:07:26 +01:00
Max Howell
4d63b87e0a
Change license to BSD
...
I confirmed this change with all relevant contributors first.
2009-08-31 16:09:17 +01:00
Max Howell
145e33abdf
Better cache names for accessory-formula
...
Because formula don't get named unless the brew kit instantiates them accessory formula were getting named "__UNKNOWN__". Which sucks.
This isn't ideal for me as I made the naming use @name and @version to ensure unique naming. Now it is possible to have name clashes in the cache. So I need to solve it better at some point.
2009-08-30 16:11:44 +01:00
Max Howell
2eec8180eb
Playdar formula
...
Fix git download strategy
2009-08-24 01:04:54 +01:00
Max Howell
72bde8c583
Move download strategies into their own file
2009-08-24 01:04:53 +01:00