aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-09-08 20:16:29 +0100
committerGitHub2016-09-08 20:16:29 +0100
commitf37d004ab5588d7b24a593ad8619f024b8c91a6b (patch)
tree8651ed80d01cc2e23a28a6c8b389f0f09bf5f577 /Library/Homebrew/cmd
parent495419a4ee0456e592bd32906b2d4a4cfa9dbf99 (diff)
parent846fa231564ce956203d5588784740e1ab0e8eb6 (diff)
downloadbrew-f37d004ab5588d7b24a593ad8619f024b8c91a6b.tar.bz2
Merge pull request #864 from vladshablinsky/skip-upgrade
Skip upgrade of pinned dependency if it's outdated
Diffstat (limited to 'Library/Homebrew/cmd')
-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)