428 Commits

Author SHA1 Message Date
Kashif Rasul
003d650e88 download_strategy: escape spaces in git submodule path.
for issue Homebrew/homebrew#36646

Closes Homebrew/homebrew#36649.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-08 14:14:34 +00:00
Christian Moritz
79bde9c13b GitDownloadStrategy: support submodule changes
This commits adds support for updating a formula with changed git
submodules with GitDownloadStrategy when the cloned repository is still
in the cache. This is done by running git submodule sync --recursive
before updating the submodules, so that git can reload the submodule
config from the updated .gitmodules file.

Fixes Homebrew/homebrew#36395.
Closes Homebrew/homebrew#36466.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-02-03 20:00:34 -05:00
Jack Nagel
e0286c5aae Avoid shell quoting issues when extracting xz and lz archives 2015-01-05 10:46:14 -05:00
Jack Nagel
120bd43f87 Buffer 16K at a time 2015-01-05 10:45:05 -05:00
Jack Nagel
8535c037ac Remove unused assignment 2015-01-04 15:37:33 -05:00
Jack Nagel
bda3b4d91e Decouple LocalBottleDownloadStrategy from CurlDownloadStrategy 2015-01-04 15:33:25 -05:00
Jack Nagel
799d2571e3 Extract non-curl parts of CurlDownloadStrategy into a base class 2015-01-04 15:33:25 -05:00
Viktor Szakats
fc2818b7a5 Use more https in urls and updated some lost links
Closes Homebrew/homebrew#35531.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-01-04 02:13:16 -05:00
Jack Nagel
8b51cf019d Move exception text into exception object 2014-12-29 22:57:45 -05:00
Jack Nagel
be59b4ea4f Mark cached_location as an attribute 2014-12-23 01:27:10 -05:00
Jack Nagel
32bf6d9937 Avoid check-then-act pattern in clear_cache 2014-12-23 01:11:08 -05:00
Jack Nagel
957ef9b6b9 Document download strategy interface 2014-12-23 01:04:44 -05:00
Jack Nagel
d3daa8a25b Mark deprecated download strategies as such 2014-12-22 00:52:10 -05:00
Jack Nagel
df70d960f8 Assume CVS module name when none is given 2014-12-22 00:43:02 -05:00
Jack Nagel
8a1ed0e748 Allow :module => "name" for CVS URLs 2014-12-22 00:43:02 -05:00
Jack Nagel
d97daa7c1b Fix references to url 2014-12-18 20:09:52 -05:00
Jack Nagel
eec429b9b6 Add :using => :fossil 2014-12-18 13:06:05 -05:00
Jack Nagel
867a87b50a Move url munging to initialize 2014-12-18 13:06:05 -05:00
Jack Nagel
ef4347b898 Start versioning cached git clones 2014-12-18 12:57:37 -05:00
Mike McQuaid
4716ee838e Revert "Start versioning cached git clones"
This reverts commit f4fe50a0958b7b47b32041e11d4943d6ae7d3972.
2014-12-18 13:03:32 +00:00
Jack Nagel
1cfeba04a8 Start versioning cached git clones 2014-12-17 23:18:17 -05:00
Jack Nagel
9a2f2aee7e Use Utils.popen_read to avoid shelling out in a few places 2014-12-16 15:51:57 -05:00
Jack Nagel
5201411a6d Provide version reader method 2014-12-10 00:55:26 -05:00
Jack Nagel
0909b12eb9 Prefer cached_location over tarball_path 2014-12-10 00:53:57 -05:00
Jack Nagel
37c636ae18 Reorganize methods in CurlDownloadStrategy 2014-12-10 00:53:57 -05:00
Jack Nagel
00ad37dd84 Add more general support for passing credentials to curl 2014-12-09 22:39:58 -05:00
Jack Nagel
18b8681a7c Pull strategy for downloading from research.att.com into core 2014-12-09 21:18:01 -05:00
Jack Nagel
1dc4fbdb0b Provide access to the specs hash indirectly via a meta attribute 2014-12-09 19:59:16 -05:00
Jack Nagel
3e1cc70fb4 Move tool path methods to AbstractDownloadStrategy 2014-12-09 16:46:28 -05:00
Jack Nagel
bec5e0671f Use quiet_safe_system to silence CVS checkouts 2014-12-09 16:03:14 -05:00
Jack Nagel
e9c368b92e Include FileUtils in AbstractDownloadStrategy 2014-12-09 15:55:28 -05:00
Jack Nagel
ddf6f51776 Prefer cached_location method over @clone ivar 2014-12-09 14:22:44 -05:00
Jack Nagel
90f938dc86 Stop returning a path from CurlDownloadStrategy#fetch
Download strategies do not consistently return a value from `fetch`, so
our code calls `cached_location` to get the path instead.
2014-12-09 12:47:10 -05:00
Jack Nagel
8560ad3ad0 Use quiet_safe_system to silence submodule updates 2014-12-06 20:57:23 -05:00
Jack Nagel
04d287e8db Use quiet_safe_system to silence submodule checkouts 2014-12-06 20:57:23 -05:00
Jack Nagel
5d811c519b Use quiet_safe_system to silence bzr updates 2014-12-06 20:57:22 -05:00
Jack Nagel
37c08393db Use quiet_safe_system to silence CVS updates 2014-12-06 17:18:34 -05:00
Jack Nagel
7e844cad1c Simplify fossil checkouts 2014-12-06 16:48:20 -05:00
Jack Nagel
dd2446ab08 Extract part of stage method to VCS strategy superclass 2014-12-06 16:00:20 -05:00
Jack Nagel
5f0feb7e85 Remove years-old TODO 2014-12-06 15:54:04 -05:00
Jack Nagel
df25be78b5 Demote FIXME to a normal comment 2014-12-06 15:53:37 -05:00
Jack Nagel
6081874612 Mark private SubversionDownloadStrategy methods 2014-12-06 15:02:49 -05:00
Jack Nagel
5afa11ecab Move fetch implementation into VCS strategy superclass 2014-12-06 15:02:49 -05:00
Jack Nagel
4026e035ad Use start_with? instead of a regexp 2014-12-06 15:02:49 -05:00
Jack Nagel
01dc112b60 Move SVN URL munging to initialize 2014-12-06 15:02:49 -05:00
Jack Nagel
62c1c61ec2 Remove method that duplicates superclass implementation 2014-12-06 15:02:49 -05:00
Jack Nagel
f189454328 Extract update from fetch in VCS strategies 2014-12-06 15:02:49 -05:00
Jack Nagel
3a20562d6e Add clone_repo to remaining VCS strategies 2014-12-06 15:02:49 -05:00
Jack Nagel
8debc18839 Add repo_valid? to remaining VCS strategies 2014-12-06 15:02:49 -05:00
Jack Nagel
a2dbcfee5b Make repo_valid? private 2014-12-06 15:02:48 -05:00