Cheng XU
72a346e6c8
cask/installer: do not install tap during conflict checking
...
If the tap of the conflicted cask is not installed, we should just skip it.
This matches the behavior of formula installation.
Without this, running `brew install dropbox` would result to install
the `homebrew/cask-versions` tap.
Fixes #9125 .
2020-12-22 15:32:11 -08:00
Markus Reiter
82c1e6fb0e
Fix basename for extracting cask downloads.
2020-12-21 15:43:25 +01:00
Markus Reiter
b57a448f2a
Add bump-unversioned-casks
command.
2020-12-07 23:03:47 +01:00
Markus Reiter
3c2ec1c60f
Deprecate remaining cask commands.
2020-11-21 19:56:12 +01:00
Markus Reiter
bf486c5397
Merge pull request #9212 from reitermarkus/brew-cask-fetch
...
Support casks in `brew fetch`.
2020-11-20 09:32:13 +01:00
Markus Reiter
c54a9937e7
Remove cask-specific checksum errors.
2020-11-19 19:46:59 +01:00
Markus Reiter
7a83f34dd1
Support casks in brew fetch
.
2020-11-19 19:46:59 +01:00
Markus Reiter
7c5d8a5288
Refactor FormulaInstaller
.
2020-11-18 09:30:11 +01:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
EricFromCanada
3768b7a6e9
apidoc: update comment wording, punctuation, formatting
2020-11-06 00:21:02 -05:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Markus Reiter
5f005f67cf
Refactor global Cask::Config
.
2020-10-01 00:57:10 +02:00
Mike McQuaid
3923d331de
Fix brew style
2020-09-15 13:39:06 +01:00
Mike McQuaid
3b114736ce
Merge pull request #8572 from Akylzhan/patch-1
...
Update cask/installer.rb: check deps before download
2020-09-02 14:22:05 +01:00
Akylzhan Sauranbay
3fdab5a24d
Update cask/installer.rb: check dependencies before download
2020-09-02 18:14:24 +06:00
Seeker
98248a44a4
cask/installer: fix reference to opt_linked/optlinked
2020-09-01 14:14:41 -07:00
Mike McQuaid
8b97c27c21
brew style manual fixes
2020-09-01 14:26:45 +01:00
Markus Reiter
5f152f5dc3
Document Installer
.
2020-08-26 03:13:59 +02:00
Markus Reiter
e9d8f09da1
Pass debug?
, quiet?
and verbose?
to FormulaInstaller
.
2020-08-06 16:12:52 +02:00
Seeker
b4f25b5911
cask/installer: don't call installed?
if Formula
2020-07-12 17:14:10 -07:00
Mike McQuaid
11cf77be17
formula_installer: prelude before fetch.
...
This ensures that dependencies are verified and tapped before they are
fetched. `FormulaInstaller#lock` has been moved into
`FormulaInstaller#install` to avoid locking until necessary.
While we're here, don't compute dependencies before fetching if we're
not going to use them.
2020-05-23 13:40:13 +01:00
Mike McQuaid
08a9f0e1c0
Use FormulaInstaller#fetch before #prelude.
2020-05-11 09:38:26 +01:00
Michelle Nguyen
2264c08cee
Fetch formula resources before unlinking during upgrade.
...
Fixes #6374 .
2020-05-11 09:37:56 +01:00
Mike McQuaid
3381cbf5c7
Use Homebrew::EnvConfig.
2020-04-07 09:58:26 +01:00
Markus Reiter
19db7bb14b
Ensure formula dependencies for casks are linked.
2020-02-21 17:36:55 +01:00
Mike McQuaid
6670ae6202
global: require rubygems for activesupport.
2019-11-06 10:36:40 +00:00
Markus Reiter
0b9a870e1c
Ensure @downloaded_path
is not nil.
2019-11-02 02:52:33 +01:00
Markus Reiter
add8885dd8
Add helper method for cask installer to get dependencies.
2019-11-01 20:28:36 +01:00
Markus Reiter
78725740e2
Refactor cask dependency resolution.
2019-10-31 20:20:55 +01:00
Markus Reiter
df3bbd0299
Reduce need for interpolating appdir
in casks.
2019-10-24 17:07:30 +02:00
Issy Long
341ea60807
Auto-fix Style/RedundantBegin offenses
...
- This also required auto-fixes for Layout/EmptyLinesAroundBlockBody and
Layout/InconsistentIndentation once the auto-fixer had got rid of the
"redundant begin"s.
2019-10-13 16:04:27 +01:00
Markus Reiter
16d2f8264c
Use MacOSRequirement
for casks.
2019-08-21 06:57:21 +02:00
Markus Reiter
e2369fcde0
Output all upgradable casks before upgrading.
2019-05-31 19:16:04 +02:00
Mike McQuaid
c4f72312ce
Fixup brew style
failures.
2019-04-30 09:19:18 +01:00
Mike McQuaid
fc6bd2ea1c
Fixup more frozen string handling.
2019-04-20 14:07:29 +09:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
EricFromCanada
fa6404e0f5
grammar fixes
2019-04-13 21:29:32 -04:00
L. E. Segovia
c6894a23c1
Only merge extended attributes if required
2019-04-09 21:45:35 +00:00
Zach Auten
75b9eec7ef
Renamed print_caveats, updated an info_spec test to macos only
2019-03-11 21:20:02 -04:00
Zach Auten
dd4daa247f
Merge branch 'master' of https://github.com/Homebrew/brew into brew-info-display-casks
2019-03-06 17:56:22 -05:00
Zach Auten
330ae8c6fa
print_caveats and get_info return heredocs
2019-02-24 21:53:04 -05:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier.
2019-02-21 12:55:49 +00:00
Zach Auten
554106d2e0
Updated missing formula cask reason
...
- search_for_cask in missing_formula renamed to is_a_cask_reason
- is_a_cask calls new getInfo method in cask/cmd/info.rb to return info
string
- self.info in info.rb now calls getInfo and puts return value
- added ohai_title to return the ohai printout for only titles, so that
ohai printout could be added to the getInfo return string without
calling puts.
- refactored ohai to use ohai_title
- updated info_spec.rb cask info test to be more specific when
matching stderr.
- is_a_cask_reason will respect 'silent'
- refactored print_caveats to return instead of print
2019-02-18 03:33:57 -05:00
Markus Reiter
3bf7e5bce5
Remove Cask::Config#write
.
2019-02-15 10:09:14 +01:00
Markus Reiter
190ff7558a
Use saved cask config for reinstall/upgrade/uninstall.
2019-02-15 10:09:14 +01:00
Markus Reiter
1e1ce1c471
Save config file for casks.
2019-02-15 10:09:14 +01:00
Markus Reiter
0fcc62db31
Run uninstall rmdir:
after uninstalling artifacts.
2019-02-08 01:09:48 +01:00
Markus Reiter
d22c2eca9e
Refactor ConflictsWith
to be a DelegateClass(Hash)
.
2019-01-27 21:48:12 +01:00
Markus Reiter
79dc58f77f
Merge pull request #5242 from reitermarkus/nested-container-permissions
...
Always make nested container readable and writable.
2018-11-04 17:05:05 +01:00
Markus Reiter
4e44724835
Always make nested container readable and writable.
2018-11-02 23:56:05 +01:00