aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/reinstall.rb
diff options
context:
space:
mode:
authorMike McQuaid2018-01-10 16:43:21 +0000
committerMike McQuaid2018-01-10 16:43:21 +0000
commit838a3f199673439b6e98a6a3de024f80ec41f09d (patch)
tree60bb48fef6021abb6fd7ae1a4dd94914218eedc0 /Library/Homebrew/cmd/reinstall.rb
parentb66010605dfb8ecd7e5eb9eb5d1b97462c259e4d (diff)
downloadbrew-838a3f199673439b6e98a6a3de024f80ec41f09d.tar.bz2
reinstall/upgrade: stop unlinked kegs being sticky
It's not possible to determine the difference between a non-keg-only keg that failed to link and one that wasn't linked by us intentionally. To avoid additional complexity of storing this logic in another place let's back out this relatively new functionality; sticky keg-only links is a better and more desirable behaviour anyway.
Diffstat (limited to 'Library/Homebrew/cmd/reinstall.rb')
-rw-r--r--Library/Homebrew/cmd/reinstall.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb
index a4629025a..53c923d91 100644
--- a/Library/Homebrew/cmd/reinstall.rb
+++ b/Library/Homebrew/cmd/reinstall.rb
@@ -39,7 +39,7 @@ module Homebrew
fi.build_bottle = ARGV.build_bottle? || (!f.bottled? && f.build.bottle?)
fi.interactive = ARGV.interactive?
fi.git = ARGV.git?
- fi.link_keg = keg_was_linked if keg_had_linked_opt
+ fi.link_keg ||= keg_was_linked if keg_had_linked_opt
fi.prelude
oh1 "Reinstalling #{f.full_name} #{options.to_a.join " "}"