aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-03-22 21:40:29 +0100
committerMike McQuaid2015-03-23 08:37:48 +0000
commit377a85fa000df49961c6b3f14413a72d602b936b (patch)
treeb13f829e285894f7938e8386a0ef09ca78785203 /Library
parent3476f06b67e2b0873fa23f306a33368c8687a6be (diff)
downloadhomebrew-377a85fa000df49961c6b3f14413a72d602b936b.tar.bz2
bottle_version: support psutils style
Closes #37959. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-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 8cb447229..348d9c971 100644
--- a/Library/Homebrew/bottle_version.rb
+++ b/Library/Homebrew/bottle_version.rb
@@ -49,6 +49,10 @@ class BottleVersion < Version
m = /-(\d{2})/.match(stem)
return m.captures.first unless m.nil?
+ # e.g. p17 from psutils-p17.yosemite.bottle.tar.gz
+ m = /-(p\d{2})/.match(stem)
+ return m.captures.first unless m.nil?
+
super
end
end