From c0253a75df93f67ae7a4ab14f1f0960b0b484556 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 29 Sep 2009 20:35:10 +0100 Subject: [PATCH] Angband version style --- Library/Homebrew/pathname+yeast.rb | 2 +- Library/Homebrew/unittest.rb | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb index 7feb83709a..79dfcb5499 100644 --- a/Library/Homebrew/pathname+yeast.rb +++ b/Library/Homebrew/pathname+yeast.rb @@ -142,7 +142,7 @@ class Pathname return $1 if $1 # eg foobar-4.5.0-bin - /-((\d+\.)+\d+)-(bin|src)$/.match stem + /-((\d+\.)+\d+[abc]?)-(bin|src)$/.match stem return $1 if $1 # eg. otp_src_R13B (this is erlang's style) diff --git a/Library/Homebrew/unittest.rb b/Library/Homebrew/unittest.rb index 0968e8f5ff..f7b3ad2c7f 100755 --- a/Library/Homebrew/unittest.rb +++ b/Library/Homebrew/unittest.rb @@ -18,6 +18,7 @@ require 'update' # these are defined in global.rb, but we don't want to break our actual # homebrew tree, and we do want to test everything :) HOMEBREW_PREFIX=Pathname.new '/private/tmp/testbrew/prefix' +HOMEBREW_REPOSITORY=HOMEBREW_PREFIX HOMEBREW_CACHE=HOMEBREW_PREFIX.parent+"cache" HOMEBREW_CELLAR=HOMEBREW_PREFIX.parent+"cellar" HOMEBREW_USER_AGENT="Homebrew" @@ -589,6 +590,11 @@ class BeerTasting