hyuraku
de7152b7a3
rename Cask::outdated_versions
2023-06-19 22:09:01 +09:00
Ismayil Mirzali
8a52ae2933
cask/quarantine: fix exception not being caught
...
Changes the rescue clause to also handle EPERM.
This fixes the issue of cask upgrades/reinstalls to failing due to
permissions [1]. It's worth noting though, the prompt for allowing App
Management permissions does not seem to occur, so that's something else
to be investigated.
1. https://github.com/Homebrew/homebrew-cask/issues/148253
Signed-off-by: Ismayil Mirzali <ismayilmirzeli@gmail.com>
2023-06-05 18:54:44 +03:00
Mike McQuaid
89dfe4fc5b
Merge pull request #15483 from JBYoshi/cask-prompt-permissions
...
Check for App Management permissions before updating apps.
2023-05-29 09:15:22 +01:00
Mike McQuaid
98dd8610ae
Tweak code style and documentation wording
2023-05-29 08:59:35 +01:00
JBYoshi
97b9b61061
Change permission failure from fatal to warning.
2023-05-26 11:13:23 -05:00
JBYoshi
40352cb2da
Make Homebrew check for App Management permissions before updating apps.
2023-05-24 22:11:16 -05:00
Markus Reiter
43c6b0ab61
Use sudo
for copying xattr
s when necessary.
2023-05-24 23:39:18 +02:00
Markus Reiter
813e639678
Add cask URL location to audit problems.
2023-05-21 16:17:16 +02:00
Markus Reiter
7cc1b6191e
Clean up brew audit
output.
2023-05-19 19:40:37 +02:00
Markus Reiter
beb4c044c2
Fix wrong token in Cask::Migrator
.
2023-05-18 19:50:06 +02:00
Markus Reiter
53de9f38a2
Merge pull request #15430 from reitermarkus/cask-inspect
...
Simplify `Cask#inspect`.
2023-05-16 11:08:01 +02:00
Markus Reiter
2f9c1868aa
Don't special-case message for outdated casks that aren't installed.
2023-05-15 11:42:01 +02:00
Markus Reiter
89292f47b5
Simplify Cask#inspect
.
2023-05-15 10:17:17 +02:00
Markus Reiter
2ae5ae243a
Merge pull request #15414 from reitermarkus/rmdir-sudo
...
Use `sudo` for `rmdir` if necessary.
2023-05-14 21:42:00 +02:00
Markus Reiter
d2231086bd
Merge pull request #15420 from reitermarkus/simulate-system-with
...
Add `SimulateSystem::with`.
2023-05-14 21:41:20 +02:00
Mike McQuaid
3dabf504bd
Merge pull request #15176 from reitermarkus/cask-renames
...
Implement cask renames.
2023-05-14 19:46:56 +01:00
Markus Reiter
0d56b97b07
Add SimulateSystem::with
.
2023-05-14 01:45:04 +02:00
Markus Reiter
935c5efaf8
Use sudo
for rmdir
if necessary.
2023-05-13 06:46:59 +02:00
Markus Reiter
d7a0e260e8
Improve Cask::Utils.gain_permissions_remove
for symlinks.
2023-05-13 03:54:48 +02:00
Markus Reiter
2c71d9dcd8
Use sudo
for symlinks if necessary.
2023-05-13 03:42:00 +02:00
JBYoshi
ad8ce82673
Fix typing on revert_upgrade().
...
Also adds several type signature checks to test for these errors.
2023-05-12 14:53:27 -05:00
Markus Reiter
a3231a03fa
Implement cask renames.
2023-05-12 21:17:30 +02:00
JBYoshi
84ad387661
Clean up code for feedback.
2023-05-11 13:29:56 -05:00
JBYoshi
29c9921726
Also use / above.
2023-05-11 12:47:37 -05:00
JBYoshi
d0e64e2c57
Use / for path concatenation.
2023-05-11 12:46:05 -05:00
JBYoshi
2e8232de39
Replace wildcard copy with a loop over children.
...
Fixes one of the errors in https://github.com/orgs/Homebrew/discussions/4498 (specifically "cp: [...].app/*:
No such file or directory").
2023-05-11 11:47:16 -05:00
Bo Anderson
fb31c5d5d6
cask/upgrade: improve error backtraces
2023-05-10 14:46:51 +01:00
Markus Reiter
8274920217
Rename OS::Mac::Version
to MacOSVersion
.
2023-05-09 05:08:38 +02:00
Markus Reiter
df620ad3ba
Make manual installers easier to open.
2023-05-08 08:25:32 +02:00
Markus Reiter
dfc9d94c5b
Type livecheck.rb
.
2023-05-06 03:27:42 +02:00
Mike McQuaid
0e387fee8c
Merge pull request #15138 from JBYoshi/cask-move-contents
...
Don't remove cask directories when upgrading.
2023-05-04 11:43:44 +01:00
JBYoshi
3e249a9428
Improve styling.
2023-05-03 11:29:01 -05:00
Bo Anderson
5921aef55c
Fix DownloadError erroring itself
2023-05-02 02:09:53 +01:00
JBYoshi
4935a8fbb2
Remove unreachable warning.
2023-04-30 12:29:40 -05:00
Mike McQuaid
cd683aefa8
Merge pull request #14629 from Kentzo/sudo-user
...
sudo: explicitly specify the root user where necessary
2023-04-29 11:17:21 +01:00
Markus Reiter
af1961d509
Fix type for nested url
blocks.
2023-04-29 03:33:59 +02:00
Ilya Kulakov
476d97934f
sudo: change sudo_user to sudo_as_root.
2023-04-28 11:22:54 -07:00
Ilya Kulakov
d470661b37
sudo: add the sudo_user arg to SystemCommand.
2023-04-28 11:11:53 -07:00
Ilya Kulakov
563387a7b4
sudo: explicitly specify the root user where necessary
...
With sudoers one may override default sudo user. This mostly works
provided the admin configured the replacement appropriately. However
there are exceptions that absolutely must be run by root such as
/usr/sbin/installer and, under certain circumstances, /bin/launchctl.
2023-04-28 11:11:53 -07:00
Bo Anderson
44f058edb5
Refactor formula, cask and Ruby source downloads to use shared code
2023-04-27 23:23:07 +01:00
JBYoshi
84fe93e5d7
Remove successor behavior for zapping.
2023-04-27 10:40:45 -05:00
JBYoshi
a1571702d3
Merge remote-tracking branch 'origin/master' into cask-move-contents
2023-04-25 15:44:29 -05:00
Douglas Eichelberger
08af78a2a5
brew style --fix
2023-04-25 09:26:24 -07:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
JBYoshi
07fdbd3fd9
Handle zap successor.
2023-04-24 17:08:13 -05:00
JBYoshi
432e0c6b5b
Extract artifact checks to matching_artifact? function.
2023-04-24 10:59:01 -05:00
JBYoshi
f97bce040f
Update for feedback.
2023-04-24 10:50:01 -05:00
Mike McQuaid
f2d064b8ae
Merge pull request #15264 from vitorgalvao/patch-1
...
Cask audit: check binary signature and notarisation
2023-04-21 07:52:11 +01:00
hyuraku
a41a7c94d8
remove cask/cmd
2023-04-19 21:30:42 +09:00
Mike McQuaid
0b4c0350c2
Merge pull request #15201 from hyuraku/remove_cask/cmd/audit
...
remove `cask/cmd/audit`
2023-04-19 10:01:06 +01:00