diff options
| author | Adam Vandenberg | 2013-07-01 16:45:27 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-01 16:46:05 -0700 |
| commit | 472b6e4fe1f4d7d8a64fde8bc66f11c990b21bc9 (patch) | |
| tree | 758caf98467907e573e69611a474464934e72cbd /Library | |
| parent | e3f26a9ced340c0903dd50afd4d754457caa59c2 (diff) | |
| download | brew-472b6e4fe1f4d7d8a64fde8bc66f11c990b21bc9.tar.bz2 | |
versions: pass string to factory
Closes Homebrew/homebrew#20951.
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 778e92ac8..86a184d94 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -88,7 +88,7 @@ class Formula # Unload the class so Formula#version returns the correct value begin Formulary.unload_formula name - nostdout { Formula.factory(path).version } + nostdout { Formula.factory(path.to_s).version } rescue *IGNORED_EXCEPTIONS => e # We rescue these so that we can skip bad versions and # continue walking the history |
