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: Move constant outside loop to avoid warnings
Date Fri, 09 Jun 2017 09:46:22 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 16bdb8a  Move constant outside loop to avoid warnings
16bdb8a is described below

commit 16bdb8aaeb065f6ce13ffe3a9525e2c581f7a1cb
Author: Sebb <sebb@apache.org>
AuthorDate: Fri Jun 9 10:46:20 2017 +0100

    Move constant outside loop to avoid warnings
---
 Rakefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Rakefile b/Rakefile
index af66c0a..55a8e86 100644
--- a/Rakefile
+++ b/Rakefile
@@ -68,6 +68,9 @@ namespace :svn do
   task :update => :config do
     repository = YAML.load_file(File.expand_path('../repository.yml', __FILE__))
 
+    # must be outside loop
+    PREFIX = '#!:' # must agree with monitors/svn.rb
+
     # checkout/update svn repositories
     svn = ASF::Config.get(:svn)
     if svn.instance_of? String and svn.end_with? '/*'
@@ -84,7 +87,6 @@ namespace :svn do
               # svn update can fail sometimes, so we retry
               2.times do |i|
                 if i > 0
-                  PREFIX = '#!:' # must agree with monitors/svn.rb
                   # log the failure - prefix tells monitor to ignore it
                   puts "#{PREFIX} failed!"
                   outerr.split("\n").each do |l|

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

Mime
View raw message