aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-07-01 16:45:27 -0700
committerAdam Vandenberg2013-07-01 16:46:05 -0700
commit472b6e4fe1f4d7d8a64fde8bc66f11c990b21bc9 (patch)
tree758caf98467907e573e69611a474464934e72cbd /Library
parente3f26a9ced340c0903dd50afd4d754457caa59c2 (diff)
downloadbrew-472b6e4fe1f4d7d8a64fde8bc66f11c990b21bc9.tar.bz2
versions: pass string to factory
Closes Homebrew/homebrew#20951.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/versions.rb2
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