aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/reinstall.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb
index e98e906f6..e51aace2a 100644
--- a/Library/Homebrew/cmd/reinstall.rb
+++ b/Library/Homebrew/cmd/reinstall.rb
@@ -8,7 +8,13 @@ module Homebrew
def reinstall
FormulaInstaller.prevent_build_flags unless DevelopmentTools.installed?
- ARGV.resolved_formulae.each { |f| reinstall_formula(f) }
+ ARGV.resolved_formulae.each do |f|
+ if f.pinned?
+ onoe "#{f.full_name} is pinned. You must unpin it to reinstall."
+ next
+ end
+ reinstall_formula(f)
+ end
end
def reinstall_formula(f)