whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Add some debug (code not working as expected)
Date Thu, 18 Jul 2019 12:04:10 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 283891b  Add some debug (code not working as expected)
283891b is described below

commit 283891bdd440280963f8ee9ff01359e217b800c1
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Jul 18 13:04:06 2019 +0100

    Add some debug (code not working as expected)
---
 tools/svnupdate.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tools/svnupdate.rb b/tools/svnupdate.rb
index 56b1721..346c0f9 100644
--- a/tools/svnupdate.rb
+++ b/tools/svnupdate.rb
@@ -13,6 +13,11 @@ mail = Mail.new(STDIN.read)
 # This must agree with the file used by the svnupdate cron job
 LOG = '/srv/whimsy/www/logs/svn-update'
 
+# More testing
+LOGTMP = '/srv/whimsy/www/logs/svn-update.tmp'
+$stderr.reopen(File.new(LOGTMP,'w'))
+$stdout.reopen(File.new(LOGTMP,'w'))
+
 def update(dir)
   # prevent concurrent updates being performed by the cron job
   File.open(LOG, File::RDWR|File::CREAT, 0644) do |log|
@@ -28,6 +33,7 @@ end
 
 if mail.subject =~ %r{^board: r\d+ -( in)? /foundation/board} # board-commits@
 
+  puts "Matched board" # test
   # prevent concurrent updates being performed by the cron job
   File.open(LOG, File::RDWR|File::CREAT, 0644) do |log|
     log.flock(File::LOCK_EX)
@@ -66,5 +72,7 @@ elsif mail.subject =~ %r{^bills: r\d+ -( in)? /financials/Bills} # operations@
     end
   end
 
+else
+  puts mail.subject # temporary test
 end
 


Mime
View raw message