446 Commits

Author SHA1 Message Date
Jack Nagel
f13ac9b0c8 Decouple the local bottle strategy from the formula 2015-06-15 21:32:15 -04:00
Jack Nagel
321476df08 Make CurlUnsafeDownloadStrategy a no-op 2015-06-15 21:32:15 -04:00
Jack Nagel
023bddbd04 Make UnsafeSubversionDownloadStrategy a no-op 2015-06-15 21:32:15 -04:00
Dominyk Tiller
794b08fc0d download_strategy: declare insecure redirects
Fixes Homebrew/homebrew#38824
2015-06-14 13:20:07 +01:00
Jack Nagel
be9c5d5d16 Remove some 10.5 hacks 2015-06-13 17:18:17 -04:00
Jack Nagel
92cbac7966 Simplify substitution 2015-04-27 20:39:20 -04:00
Misty De Meo
8fe0b56810 Add support for extracting LHA archives 2015-04-26 11:11:56 -07:00
Geoff Nixon
da9e481205 download_strategy: allow anoncvs.
Closes Homebrew/homebrew#38965.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-24 09:54:40 +01:00
Viktor Szakats
9c46e4be0a download_strategy: automatically use apache.org https mirror
Discussion: https://github.com/Homebrew/homebrew/issues/37945
Patch by @jacknagel.

Closes Homebrew/homebrew#38492.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-04-10 08:39:18 +01:00
Felix Bünemann
c8415c665a download_strategy: allow ssl apache mirror links.
Closes Homebrew/homebrew#37732.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-03-15 12:51:51 +00:00
rstata-verticloud
7ec71c4542 Update AWS SDK dependency of S3DownloadStrategy
Closes Homebrew/homebrew#37470.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2015-03-09 21:54:36 -04:00
Mike McQuaid
b6a0105b7e download_strategy: raise on wrong tag revision.
Adds some added security to Git tags so we are able to provide an
effective checksum rather than letting them be changed without our
knowing.

Also:

- Reprioritise ref_types. Tag should take priority over branch and revisions over a single one.
- Add current_revision method. Used to verify the current repository revision matches the specified
revision. Currently only implemented for Git.
2015-03-08 10:48:58 +00:00
Mike McQuaid
17bfb0f804 Remove SourceForge references.
It was fun but we just love Bintray more than you.

Closes Homebrew/homebrew#37211.

Closes Homebrew/homebrew#37213.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-02-26 11:32:42 +00:00
Jack Nagel
eaf82ba09b Stage entire git repo into build directory
Closes Homebrew/homebrew#27193.
2015-02-14 16:32:24 -05:00
Jack Nagel
6648f976fb Remove unnecessary use of Dir[] 2015-02-14 15:28:40 -05:00
Jack Nagel
6d791acf22 Support older git without "submodule sync --recursive"
Fixes Homebrew/homebrew#36774.
2015-02-13 22:16:57 -05:00
Jack Nagel
60452a526f Quote entire path passed to checkout-index 2015-02-08 19:53:38 -05:00
Jack Nagel
5c758f7852 Revert "download_strategy: escape spaces in git submodule path."
This is causing submodules to be checked out into a path with a literal
"$path" component:

$ find . | grep "\$path$"
./$path
./Carthage/Checkouts/Commandant/$path
./Carthage/Checkouts/Commandant/Carthage/Checkouts/Quick/$path
./Carthage/Checkouts/PrettyColors/$path
./Carthage/Checkouts/Quick/$path
./Carthage/Checkouts/ReactiveCocoa/$path
./Carthage/Checkouts/ReactiveCocoa/Carthage/Checkouts/Quick/$path
./Carthage/Checkouts/ReactiveTask/$path
./Carthage/Checkouts/ReactiveTask/Carthage/Checkouts/Quick/$path
./Carthage/Checkouts/ReactiveTask/Carthage/Checkouts/ReactiveCocoa/$path
./Carthage/Checkouts/ReactiveTask/Carthage/Checkouts/ReactiveCocoa/Carthage.checkout/Quick/$path

This reverts commit 3a5f099297e9ab3b799af5f7a65edd8d64bc7bae.
2015-02-08 19:44:39 -05:00
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