diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index 906fc4f8c5..6962825450 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