diff options
| author | Russell Teabeault | 2013-03-21 09:28:40 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-03-21 13:26:56 -0500 |
| commit | 2827daed784b4701cf6d1614917641797529ff5d (patch) | |
| tree | 341cf58996db9b8a216aec66c405b62c4cd531d8 /Library | |
| parent | 7ec919053901794dfe1c807bfd7ac7cc3eb71219 (diff) | |
| download | homebrew-2827daed784b4701cf6d1614917641797529ff5d.tar.bz2 | |
versions: unload constant before calling Formula.factory
Closes #18634.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/versions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index 3d186bf72..ae8c321ad 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -68,8 +68,8 @@ class Formula # Unload the class so Formula#version returns the correct value begin - version = nostdout { Formula.factory(path).version } Object.send(:remove_const, Formula.class_s(name)) + version = nostdout { Formula.factory(path).version } version rescue SyntaxError, TypeError, NameError, ArgumentError # We rescue these so that we can skip bad versions and |
