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