Markus Reiter
4183dd3564
Merge pull request #4552 from reitermarkus/reorder-unpack-strategies
...
Reorder unpack strategies.
2018-08-02 05:44:12 +02:00
Markus Reiter
dce6b875c1
Merge pull request #4581 from reitermarkus/non-existent-download-strategies
...
Remove non-existent download strategies.
2018-08-01 16:09:03 +02:00
Markus Reiter
85a6d81e2a
Make sure download directory exists.
2018-08-01 05:40:15 +02:00
Markus Reiter
3d27b2aa8d
Explicitly pass version to download strategy.
2018-08-01 05:40:15 +02:00
Markus Reiter
4c80f827ad
Only search by extension when unpacking formulae.
2018-08-01 04:16:27 +02:00
Markus Reiter
29182ad068
Remove non-existent download strategies.
2018-08-01 01:59:54 +02:00
Markus Reiter
8ae284e871
Use SystemCommand
for curl
.
2018-08-01 01:04:42 +02:00
feu
4bb82ccd94
just one target.directory check in fetch_repo
2018-07-30 11:12:48 -03:00
feu
c63d8813af
svn update/checkout with system_command
2018-07-30 10:04:54 -03:00
feu
43d53a67b7
just adjusting spaces
2018-07-29 20:54:13 -03:00
feu
ce3ac54e2c
changing to use system_command .. chdir
2018-07-29 11:36:43 -03:00
feu
ad18c5c4b1
adjusting args in fetch_repo
2018-07-27 10:23:36 -03:00
feu
a0f30934aa
removing unnecessary .to_s
2018-07-25 19:46:35 -03:00
feu
9594a56879
removing svn_cached_location and using svn_escape(path) inside subversion.rb
2018-07-25 19:32:36 -03:00
feu
3098a900d1
removing unintentional added spaces 2
2018-07-25 16:59:57 -03:00
feu
c3516cf472
removing unintentional added spaces
2018-07-25 16:52:21 -03:00
feu
2f18fff999
adjusting svn commands to consider the @ symbol
2018-07-25 16:42:16 -03:00
Markus Reiter
b6e54a06e0
Refactor unpack strategies into separate files.
2018-07-23 20:59:28 +02:00
Markus Reiter
4f495a967d
Add verbose
to extract_nestedly
.
2018-07-22 20:30:28 +02:00
Markus Reiter
ad7be58655
Use guard clause instead of ||
.
2018-07-19 16:53:11 +02:00
Markus Reiter
2452b27866
Refactor ErrorDuringExecution
.
2018-07-19 16:41:27 +02:00
Markus Reiter
88cef28246
Use extract_nestedly
for staging.
2018-07-17 10:19:15 +02:00
Markus Reiter
cba55c8fd4
Add @ref_type
and @ref
needef for fossil
.
2018-07-12 10:39:28 +02:00
Markus Reiter
8ea7ad2218
Fix basename_without_params
.
2018-07-12 10:39:27 +02:00
Markus Reiter
5b3bbb76c9
Separate staging from download.
2018-07-12 10:39:27 +02:00
Mike McQuaid
d9f90deb7c
download_strategy: use tar xf.
...
The flags and separate `-` aren't required on 10.5 which is the oldest
version of macOS we support (and it looks nicer this way).
2018-07-05 20:58:35 +01:00
Markus Reiter
59b3c76ee6
Remove unneeded quiet_safe_system
usage.
2018-07-05 11:54:33 +02:00
Markus Reiter
abd855bdad
Refactor staging step for download strategies.
2018-07-05 02:40:49 +02:00
Markus Reiter
74ac070b5c
Refactor and fix VCS download strategies.
2018-07-04 02:21:09 +02:00
Mike McQuaid
c101a82c5b
Revert "Fix SVN downloads of versioned formula by munging directory names"
2018-06-26 07:10:36 +01:00
Andrew Janke
b72c4e3248
Fix SVN downloads of versioned formula by munging directory names
2018-06-25 03:21:36 -04:00
Mike McQuaid
0bb3d63c56
download_strategy: fix bzr --HEAD downloads.
...
`bzr` needs `BZR_HOME` set to something that's writable in the sandbox
to be able to write log files.
2018-05-31 19:43:01 +01:00
Ray Hamel
1ee40e831a
Don't splat 2nd arg to ErrorDuringExecution::new
2018-04-17 19:09:54 -04:00
Mike McQuaid
af9ddfe899
Merge pull request #4035 from MikeMcQuaid/ruby-warnings
...
Fix HOMEBREW_RUBY_WARNINGS="-w"
2018-04-08 22:51:25 +01:00
Mike McQuaid
9fca172d03
Fix HOMEBREW_RUBY_WARNINGS="-w"
...
Fix various circular requirements, method redefinitions, etc.
2018-04-07 20:28:56 +01:00
Ryan Greenberg
fe8939ddd0
brew: Add ScpDownloadStrategy
2018-04-05 18:57:34 -07:00
Mike McQuaid
46e6b33d1b
Merge pull request #3967 from amancevice/s3-scheme
...
DownloadStrategyDetector recognizes s3 URL scheme
2018-03-25 10:01:31 +01:00
Alexander Mancevice
a096284d03
DownloadStrategyDetector recognizes s3 URL scheme
...
DownloadStrategyDetector now detects URLs with the s3:// prefix, e.g.:
s3://my-bucket/path/to/key/tarball.tar.gz
2018-03-24 17:34:51 -04:00
Ethan Edwards
06f7d7d696
Allow bottles to use any DownloadStrategy
2018-03-24 10:53:49 +00:00
Alexander Mancevice
9b457ec51e
Upgraded use of AWS Ruby SDK for S3
...
When S3DownloadStrategy is detected in DownloadStrategyDetector an attempt
is made to install & require the aws-sdk-s3 gem.
The AWS S3 SDK is used to sign the URL and handed off to curl_download.
2018-03-22 11:22:07 -04:00
Mike McQuaid
83cca40fc9
RuboCop 0.53.0 manual fixes.
2018-03-08 14:10:02 +00:00
Kevin Abel
ca3fccaf2b
Make ext use bounded iterator
2018-02-12 14:22:10 -06:00
Kevin Abel
601af55b43
Add root dirname as a escape value too
2018-02-02 18:15:05 -06:00
Kevin Abel
0254605cd5
Handle reaching the top of a URL which searching for file ext
...
Should never reach this as most URL's will have a domain name that will
be caught as an extname.
2018-01-13 17:06:21 -06:00
Kevin Abel
dca8dc5bf5
Fix audit
2018-01-09 20:11:52 -06:00
Kevin Abel
06f2b50ee4
Fix cached download file extension for certain URL
...
PHP URLs have the downloadable file in the middle of the pathname. If no
extension is detected, continue up the pathname.
2018-01-09 19:56:54 -06:00
Steven Peters
913ff483f0
Use hgpath instead of "hg" to fix --HEAD hg builds
...
Fixes #3628 .
With environment filtering, hg was no longer in the path,
so make sure to provide the path when calling hg commands.
last_commit was the source of the problem in #3628
but I fixed source_modified_time as well.
I didn't see any others with this problem.
2018-01-08 00:24:02 -08:00
Shaun Jackman
ce85e3b3b5
Remove with_system_path
...
The method with_system_path is no longer needed,
since environment filtering uses a default PATH.
2017-12-12 09:27:06 -08:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00