diff options
| author | Mike McQuaid | 2013-09-27 17:54:01 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-27 17:55:00 +0100 |
| commit | ba6fadf425f0b991ae6179af4fd9ae55991e448d (patch) | |
| tree | 30ce1cad310bfbe08cc866f520fdeb12eac7ec94 /Library | |
| parent | 9d8d8cc8bb61d9d2fe55317c67b235f66de652e3 (diff) | |
| download | homebrew-ba6fadf425f0b991ae6179af4fd9ae55991e448d.tar.bz2 | |
brew-pull/test-bot: use stricter formula match.
Diffstat (limited to 'Library')
| -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 521df766b..de368f9fb 100755 --- a/Library/Contributions/cmd/brew-pull.rb +++ b/Library/Contributions/cmd/brew-pull.rb @@ -78,7 +78,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.include? '/Formula/' or tap url + if (status == 'A' or status == 'M') and filename.match /Formula\/\w+\.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 fb21b5ece..f035eddef 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.include? '/Formula/' + if filename.match /Formula\/\w+\.rb$/ @formulae << File.basename(filename, '.rb') end end |
