575 Commits

Author SHA1 Message Date
Xu Cheng
8b61d7899b DownloadStrategy: preserve timestamp for cp 2016-05-26 22:13:50 +08:00
Uladzislau Shablinski
5703ebf496 download_strategy: cvs source_modified_time (#268) 2016-05-24 17:19:18 +08:00
Uladzislau Shablinski
90d3317d7d download_strategy: use svn info --xml (#174) 2016-05-01 19:46:24 +08:00
Vlad Shablinsky
6f1116c8e1 download_strategy: fossil source_modified_time
Closes #171.

Signed-off-by: Xu Cheng <xucheng@me.com>
2016-05-01 14:28:24 +08:00
Vlad Shablinsky
f79edbc560 download_strategy: bazaar source_modified_time 2016-05-01 14:28:24 +08:00
Vlad Shablinsky
155960d991 download_strategy: mercurial source_modified_time 2016-05-01 14:28:24 +08:00
Uladzislau Shablinski
3ff1aa9fa3 download_strategy: add svn source_modified_time (#156) 2016-04-30 00:06:37 +08:00
Misty De Meo
0f7caa154f Tiger tar requires explicit format 2016-04-22 22:37:21 -07:00
Andrew Janke
acc9a7ca85 brew test, install, update-test: add --keep-tmp option
Also enables sandbox for --interactive and --debug use of install
and test, using automatic retention.

Closes #66.

Signed-off-by: Andrew Janke <andrew@apjanke.net>
2016-04-18 12:23:08 -04:00
Xu Cheng
c540343903 download_strategy: correct S3 url regex 2016-03-06 13:51:06 +08:00
Kel Cecil
59536356b6 Allow S3 buckets to have dots
Closes Homebrew/homebrew#49729.

Signed-off-by: Tim D. Smith <git@tim-smith.us>
2016-03-03 09:43:04 -08:00
Xu Cheng
b24f174325 download_strategy: add source_modified_time 2016-01-15 16:26:04 +08:00
Mike McQuaid
6cb900addf download_strategy: don't do tar v on Travis CI.
The output is too noisy and Travis gets upset.
2016-01-05 17:01:51 +00:00
Zhiming Wang
d7b6230aed download_strategy: untar verbosely when --verbose is present
Closes Homebrew/homebrew#47555.
Closes Homebrew/homebrew#47649.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2016-01-04 11:10:32 +01:00
Xu Cheng
dd7e8f291d downloads: fix undefined local variable
2950e5ab6e (commitcomment-13824130)
2015-10-17 04:00:41 +08:00
Andrew Janke
017a501471 downloads: Fix checkout on initial clone
Moves the "Checking out" output to where checkouts actually happen, to avoid spurious checkout announcements.

Closes Homebrew/homebrew#45019.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-10-16 09:54:47 +01:00
Jan Lehnardt
93f7ef6f42 download_strategy: add Apache mirror lua.
The ASF now has a preferred .lua mirror script on top of the .cgi file

Closes Homebrew/homebrew#43521.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-09-06 12:44:00 +01:00
Xu Cheng
ab363ea1d9 CurlApacheMirrorDownloadStrategy: ignore HOMEBREW_CURL_VERBOSE
Fixes Homebrew/homebrew#43002

Closes Homebrew/homebrew#43058.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-20 15:47:33 +08:00
Xu Cheng
4d84ff3b03 allowing rescue https redirect error
It can be useful when implementing custom https mirror strategy such as Homebrew/homebrew#42955.

Closes Homebrew/homebrew#43020.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-08-18 15:55:36 +08:00
BrewTestBot
13d544e11e Core files style updates.
Closes Homebrew/homebrew#42354.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Xu Cheng
744de30089 move deprecated codes into compat
Closes Homebrew/homebrew#41974.
2015-07-21 21:58:10 +08:00
Dominyk Tiller
dfbc2df09f download_strategy: kill special ssl3 support
Closes Homebrew/homebrew#41536.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-07-10 19:30:03 +01:00
Indrajit Raychaudhuri
7c890261ac download_strategy: private method allowing extra curl options.
This allows some curl options to be always passed to curl, with raw
head calls (`curl -I`) (in `CurlDownloadStrategy#actual_urls`) or with
actual `curl` (in `CurlDownloadStrategy#curl`).

This also avoid the need for overriding whole `_fetch` in a few cases
and just override `_curl_opts` to append additional options instead.

Closes Homebrew/homebrew#41506.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-07-09 12:19:58 +01:00
Misty De Meo
f31e411f38 Git: unshallow shallow clones if necessary
Fixes Homebrew/homebrew#41225.
2015-06-30 20:52:39 -07:00
Alex Dunn
689d741e16 download_strategy: remove exclamation point
Closes Homebrew/homebrew#41171.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
2015-06-29 20:03:16 +01:00
Xu Cheng
7a75bbd85a download_strategy: fix url reassign
We need reassign url after urls are inspected.
2015-06-23 00:23:44 +08:00
Xu Cheng
0276c3c70c download_strategy: make sure the inspected url is used
Closes Homebrew/homebrew#40940.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-22 21:24:57 +08:00
Xu Cheng
60b70c9931 download_strategy: remove extra colon
Closes Homebrew/homebrew#40920.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-21 01:47:09 +08:00
Xu Cheng
05d9622c02 download_strategy: don't check url if already downloaded
Closes Homebrew/homebrew#40859.

Signed-off-by: Xu Cheng <xucheng@me.com>
2015-06-20 14:44:09 +08:00
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