Skip to content

Commit ba8d449

Browse files
committed
formula_installer: allow installing/upgrading disabled formulae
Signed-off-by: Patrick Linnane <patrick@linnane.io>
1 parent 666601f commit ba8d449

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Library/Homebrew/formula_installer.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,12 @@ def prelude
254254
when :deprecated
255255
opoo message
256256
when :disabled
257-
GitHub::Actions.puts_annotation_if_env_set(:error, message)
258-
raise CannotInstallFormulaError, message
257+
if force?
258+
opoo message
259+
else
260+
GitHub::Actions.puts_annotation_if_env_set(:error, message)
261+
raise CannotInstallFormulaError, message
262+
end
259263
end
260264
end
261265

0 commit comments

Comments
 (0)