Mandar Gokhale
0e15ffff62
Correct a few typos
...
...and update man pages where applicable
2016-11-03 12:09:44 +00:00
Mike McQuaid
b1a16deb19
Use BSD tar's libarchive LZMA support if available
...
Avoid using an unnecessary `xz` dependency when it's not needed.
2016-10-15 13:10:37 +01:00
Zhiming Wang
f28e5106c2
download_strategy: silence unzip and unrar
...
We silenced tar in 5e3a26b. It makes sense to make unzip and unrar
output comparably succinct.
2016-09-27 18:26:04 -04:00
Zhiming Wang
5e3a26bfe0
download_strategy: never verbosely untar
...
The verbose mode of tar is too pointlessly verbose.
2016-09-24 19:53:43 -04:00
Markus Reiter
6c6a4c9fa7
RuboCop: Style/AccessorMethodName
2016-09-24 19:28:26 +02:00
Markus Reiter
58e36c7319
Fix Style/GuardClause.
2016-09-24 12:24:35 +02:00
Markus Reiter
e851c9bf6c
Style/Alias: Prefer alias
.
2016-09-23 18:19:53 +02:00
Markus Reiter
0b473ebba9
Fix Style/PredicateName.
2016-09-23 15:30:06 +02:00
Markus Reiter
42efb44e7d
Fix Lint/EndAlignment.
2016-09-23 15:30:06 +02:00
Markus Reiter
52ff988530
Fix RuboCop CaseEquality.
2016-09-23 15:30:06 +02:00
Mike McQuaid
1bdbb0f462
Improve rescue nesting.
2016-09-17 17:01:04 +01:00
Mike McQuaid
3982950e61
rubocop --auto-correct all hash-rocket usage.
2016-09-17 16:14:13 +01:00
Mike McQuaid
6693915399
rubocop --auto-correct all remaining files.
...
But remove some manual `.freeze`s on constants that shouldn't be
constants.
2016-09-17 16:14:13 +01:00
Vlad Shablinsky
b7a17ba345
download_strategy: check if commit nil
2016-08-19 12:32:20 +02:00
Vlad Shablinsky
5ddee3502e
download_strategy: use short hash for mercurial
2016-08-06 21:25:56 +08:00
Vlad Shablinsky
09d21ad258
download_strategy: allow to suppress output
2016-08-06 21:25:56 +08:00
Vlad Shablinsky
1693ddbdcb
Introduce GitHubGitDownloadStrategy
2016-08-06 21:25:56 +08:00
Vlad Shablinsky
2e916110e4
Use HeadVersion for install/reinstall
2016-07-16 20:39:13 +08:00
Xu Cheng
28861ac92d
CurlDownloadStrategy#_fetch: fix unintended variable modification
2016-07-14 13:14:49 +08:00
Xu Cheng
ed9bb449d1
CurlDownloadStrategy#_fetch: do not alter variable @url
( #504 )
...
In case of download failure and retry, altering `@url` can cause side
effect like repeatedly applying `HOMEBREW_ARTIFACT_DOMAIN`.
2016-07-13 20:56:12 +08:00
jainish shah
48a1e1b47f
Add HOMEBREW_ARTIFACT_DOMAIN option.
...
If set, this environment variable instructs Homebrew to use the given URL as a
download mirror (e.g. an Artifactory instance) for bottles and binaries.
Closes #387 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2016-07-13 11:45:15 +01:00
Martin Afanasjew
32f7e738ec
download_strategy: ensure fixed commit hash length
...
The length of the commit hash returned for `--short` can vary depending
on user configuration. Make sure this works independently of what might
have been configured via a user's `.gitconfig`. This also fixes the
failing `GitDownloadStrategyTests#test_last_commit` test for such users.
2016-07-07 02:14:31 +02:00
Vlad Shablinsky
45b3bfd11a
download_strategy: use short hash for git last_commit
...
Closes #460 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-07-06 16:19:49 +08:00
Vlad Shablinsky
2f5f352baa
VCSDownloadStrategy: add last_commit method
...
Implement:
* VCSDownloadStrategy#last_commit
Use last modified file timestamp
* SubversionDownloadStrategy#last_commit
Use `svn info --show-item revision`
* GitDownloadStrategy#last_commit
Use `git rev-parse HEAD`
* MercurialDownloadStrategy#last_commit
Use `hg parent --template {node}`
* BazaarDownloadStrategy#last_commit
Use `bazaar revno`
* FossilDownloadStrategy#last_commit
Use `fossil info tip`
2016-07-06 16:19:49 +08:00
Camden Narzt
29713e61eb
download_strategy: fix detect_from_symbol method ( #446 )
...
strategy is an undefined variable
2016-07-04 01:58:44 -04:00
Mike McQuaid
5e272257d2
download_strategy: add missing "time" require.
...
Closes https://github.com/Homebrew/homebrew-core/issues/1687 .
2016-06-03 13:46:18 +01:00
Martin Afanasjew
b9552a5fbf
download_strategy: fix git submodule references ( #303 )
...
Some Git versions create absolute `gitdir:` pointers in a submodule's
`.git` file, which can be problematic once the resource is staged and
causes various Git operations for those submodules to fail. Work around
this issue by fixing the submodule `.git` files after submodule update.
See Homebrew/homebrew-core#1520 for details and an affected formula.
2016-05-31 17:11:57 +02:00
Xu Cheng
75ab94c8ea
CurlDownloadStrategy: move no insecure redirect check to _fetch
...
This mainly fixes the problems for subclasses of CurlDownloadStrategy.
More specifically it fixes two things:
* It allows the no insecure redirect check to be applied to
CurlApacheMirrorDownloadStrategy.
* It fixes previous broken CurlPostDownloadStrategy.
Closes #280 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-05-26 22:13:50 +08:00
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