whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] 01/02: restart on change to script
Date Wed, 07 Jun 2017 17:00:35 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit 869d2f907754eb78a57a90a7324408b33b3578f5
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Jun 7 13:00:03 2017 -0400

    restart on change to script
---
 tools/pubsub.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/pubsub.rb b/tools/pubsub.rb
index cad6038..ef70ffa 100644
--- a/tools/pubsub.rb
+++ b/tools/pubsub.rb
@@ -156,6 +156,7 @@ end
 project = File.basename(options.remote, '.git')
 
 begin
+  mtime = File.mtime(__FILE__)
   while ps_thread.alive?
     notification = notification_queue.pop
     next unless notification['commit']['project'] == project
@@ -169,6 +170,7 @@ begin
         system 'rake update'
       end
     end
+    next if mtime != File.mtime(__FILE__)
   end
 rescue SignalException => e
   STDERR.puts e

-- 
To stop receiving notification emails like this one, please contact
"commits@whimsical.apache.org" <commits@whimsical.apache.org>.

Mime
View raw message