Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 25952200C8F for ; Fri, 9 Jun 2017 11:46:28 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2432F160BC8; Fri, 9 Jun 2017 09:46:28 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6B444160B9C for ; Fri, 9 Jun 2017 11:46:27 +0200 (CEST) Received: (qmail 44264 invoked by uid 500); 9 Jun 2017 09:46:26 -0000 Mailing-List: contact commits-help@whimsical.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@whimsical.apache.org Delivered-To: mailing list commits@whimsical.apache.org Received: (qmail 44254 invoked by uid 99); 9 Jun 2017 09:46:25 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 09:46:25 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 9AA35814D3; Fri, 9 Jun 2017 09:46:22 +0000 (UTC) Date: Fri, 09 Jun 2017 09:46:22 +0000 To: "commits@whimsical.apache.org" Subject: [whimsy] branch master updated: Move constant outside loop to avoid warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <149700158271.20373.11691972121168457995@gitbox.apache.org> From: sebb@apache.org Reply-To: "commits@whimsical.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: whimsy X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: ab772ff18c1a4be8061e1188f82f0ba0317b8477 X-Git-Newrev: 16bdb8aaeb065f6ce13ffe3a9525e2c581f7a1cb X-Git-Rev: 16bdb8aaeb065f6ce13ffe3a9525e2c581f7a1cb X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Fri, 09 Jun 2017 09:46:28 -0000 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 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" '].