diff options
| author | Mike McQuaid | 2013-11-15 00:06:50 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-11-15 00:06:50 +0000 |
| commit | ddb4211d78aa6ee51c7e50bc8a3759741f0ea09b (patch) | |
| tree | 862ee466f9107f3db4afeb7842ce3c474427a9c4 | |
| parent | f99ca1816a7229fb6a57dec2155098c8ea6343ad (diff) | |
| download | homebrew-ddb4211d78aa6ee51c7e50bc8a3759741f0ea09b.tar.bz2 | |
brew-pull/test-bot: fix PR filename matching.
| -rwxr-xr-x | Library/Contributions/cmd/brew-pull.rb | 2 | ||||
| -rwxr-xr-x | Library/Contributions/cmd/brew-test-bot.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-pull.rb b/Library/Contributions/cmd/brew-pull.rb index a0eb1b4b9..0bdcac79a 100755 --- a/Library/Contributions/cmd/brew-pull.rb +++ b/Library/Contributions/cmd/brew-pull.rb @@ -82,7 +82,7 @@ ARGV.named.each do|arg| `git diff #{revision}.. --name-status`.each_line do |line| status, filename = line.split # Don't try and do anything to removed files. - if (status == 'A' or status == 'M') and filename.match /Formula\/\w+\.rb$/ or tap url + if (status == 'A' or status == 'M') and filename.match /Formula\/.+\.rb$/ or tap url formula = File.basename(filename, '.rb') ohai "Installing #{formula}" install = Formula.factory(formula).installed? ? 'upgrade' : 'install' diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 1cd22b114..6e0ee2ac3 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -230,7 +230,7 @@ class Test status, filename = line.split # Don't try and do anything to removed files. if (status == 'A' or status == 'M') - if filename.match /Formula\/\w+\.rb$/ + if filename.match /Formula\/.+\.rb$/ @formulae << File.basename(filename, '.rb') end end |
