Return-Path: X-Original-To: apmail-community-commits-archive@minotaur.apache.org Delivered-To: apmail-community-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9BBAF18675 for ; Fri, 25 Sep 2015 09:26:38 +0000 (UTC) Received: (qmail 56090 invoked by uid 500); 25 Sep 2015 09:26:38 -0000 Delivered-To: apmail-community-commits-archive@community.apache.org Received: (qmail 56062 invoked by uid 500); 25 Sep 2015 09:26:38 -0000 Mailing-List: contact commits-help@community.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@community.apache.org Delivered-To: mailing list commits@community.apache.org Received: (qmail 56053 invoked by uid 99); 25 Sep 2015 09:26:38 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2015 09:26:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0CA48C0E3D for ; Fri, 25 Sep 2015 09:26:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.501 X-Spam-Level: *** X-Spam-Status: No, score=3.501 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RDNS_NONE=2.5, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5EiUFixqjTid for ; Fri, 25 Sep 2015 09:26:37 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (unknown [209.188.14.139]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id C604B20313 for ; Fri, 25 Sep 2015 09:26:36 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CF111E00B0 for ; Fri, 25 Sep 2015 09:26:35 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 96D613A0233 for ; Fri, 25 Sep 2015 09:26:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1705259 - /comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh Date: Fri, 25 Sep 2015 09:26:35 -0000 To: commits@community.apache.org From: sebb@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150925092635.96D613A0233@svn01-us-west.apache.org> Author: sebb Date: Fri Sep 25 09:26:35 2015 New Revision: 1705259 URL: http://svn.apache.org/viewvc?rev=1705259&view=rev Log: Ensure we cannot overwrite target with stale data Modified: comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh Modified: comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh?rev=1705259&r1=1705258&r2=1705259&view=diff ============================================================================== --- comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh (original) +++ comdev/projects.apache.org/scripts/cronjobs/reportingcycles.sh Fri Sep 25 09:26:35 2015 @@ -1,6 +1,8 @@ # Create the reporting cycles file and copy it to reporter.a.o -python3 reportingcycles.py +rm -f ../../data/cache/reportingcycles.json + +python3 reportingcycles.py || exit echo copying ../../data/cache/reportingcycles.json to ../../../reporter.apache.org/ cp ../../data/cache/reportingcycles.json ../../../reporter.apache.org/site/