diff options
| author | Adam Vandenberg | 2013-07-01 16:45:27 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2013-07-01 16:46:05 -0700 |
| commit | bbb9ad2a214360245a063382596c62ae2e77898b (patch) | |
| tree | e0e2f4fc25abe6fd78b8d8b8a414b4f38b8a313c /Library | |
| parent | 9cff299789ccdc59555cd8513d75b3c378f18073 (diff) | |
| download | homebrew-bbb9ad2a214360245a063382596c62ae2e77898b.tar.bz2 | |
versions: pass string to factory
Closes #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 |
