brew-pull/test-bot: fix PR filename matching.

This commit is contained in:
Mike McQuaid 2013-11-15 00:06:50 +00:00
parent 8d256848d6
commit 0f0bcd4bed
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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