aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/versions.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb
index 906fc4f8c..696282545 100644
--- a/Library/Homebrew/cmd/versions.rb
+++ b/Library/Homebrew/cmd/versions.rb
@@ -62,6 +62,8 @@ class Formula
mktemp do
path = Pathname.new(Pathname.pwd+"#{name}.rb")
path.write text_from_sha(sha)
+ # FIXME: shouldn't have to do this?
+ Object.send(:remove_const, "#{name.capitalize}")
Formula.factory(path).version
end rescue nil
end