aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorXu Cheng2016-01-26 15:52:45 +0800
committerXu Cheng2016-01-26 15:52:45 +0800
commit9d216a53f8080e215330bb2fcd746eb656887967 (patch)
tree9c34430d64fd51ca06763c7a8d0e253d6d64cecb /Library/Homebrew
parent1f2ca73ac1429a1a6d937384d0259a65dbc3d97c (diff)
downloadbrew-9d216a53f8080e215330bb2fcd746eb656887967.tar.bz2
bottle: clear tab cache
We cached the tab file content during formula loading. Let's discard them, so we can read tab content after relocation
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/bottle.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 62fabf416..594058df6 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -201,6 +201,7 @@ module Homebrew
keg.delete_pyc_files!
+ Tab.clear_cache
tab = Tab.for_keg(keg)
original_tab = tab.dup
tab.poured_from_bottle = false