aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/bottle_version.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/bottle_version.rb')
-rw-r--r--Library/Homebrew/bottle_version.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/bottle_version.rb b/Library/Homebrew/bottle_version.rb
index 2d1bfb04e..6075f967a 100644
--- a/Library/Homebrew/bottle_version.rb
+++ b/Library/Homebrew/bottle_version.rb
@@ -29,6 +29,10 @@ class BottleVersion < Version
m = /-(\d+_\d+(_\d+)+)/.match(stem)
return m.captures.first unless m.nil?
+ # e.g. 20120731 from fontforge-20120731.mavericks.bottle.tar.gz
+ m = /-(\d+)/.match(stem)
+ return m.captures.first unless m.nil?
+
super
end
end