aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2016-07-03 14:34:38 -0500
committerGitHub2016-07-03 14:34:38 -0500
commit0478c2fc0f0bfb1687a57ffcdb27f39bfe241577 (patch)
tree250889d53294c20eecb81004d8de5456f7070eb6 /Library
parenta97661a548c077e36956783f39c10746d000959c (diff)
downloadbrew-0478c2fc0f0bfb1687a57ffcdb27f39bfe241577.tar.bz2
update-report: prune on cask migration. (#428)
Do this to ensure that any symlinks in the Homebrew prefix and/or in Applications are removed to stop issues with stale symlinks causing Casks from being installed correctly.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update-report.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/update-report.rb b/Library/Homebrew/cmd/update-report.rb
index a6cad4316..0f75edaad 100644
--- a/Library/Homebrew/cmd/update-report.rb
+++ b/Library/Homebrew/cmd/update-report.rb
@@ -255,6 +255,7 @@ class Reporter
if new_tap.installed? && (HOMEBREW_REPOSITORY/"Caskroom").directory?
ohai "#{name} has been moved to Homebrew Cask. Installing #{name}..."
system HOMEBREW_BREW_FILE, "uninstall", "--force", name
+ system HOMEBREW_BREW_FILE, "prune"
system HOMEBREW_BREW_FILE, "cask", "install", name
else
ohai "#{name} has been moved to Homebrew Cask.", <<-EOS.undent