Return-Path: Delivered-To: apmail-sling-commits-archive@www.apache.org Received: (qmail 49062 invoked from network); 16 Sep 2010 16:46:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Sep 2010 16:46:13 -0000 Received: (qmail 72345 invoked by uid 500); 16 Sep 2010 16:46:13 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 72281 invoked by uid 500); 16 Sep 2010 16:46:12 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 72269 invoked by uid 99); 16 Sep 2010 16:46:11 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 16:46:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Sep 2010 16:45:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E0E4823889EB; Thu, 16 Sep 2010 16:45:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r997835 - /sling/trunk/check_staged_release.sh Date: Thu, 16 Sep 2010 16:45:32 -0000 To: commits@sling.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100916164532.E0E4823889EB@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bdelacretaz Date: Thu Sep 16 16:45:32 2010 New Revision: 997835 URL: http://svn.apache.org/viewvc?rev=997835&view=rev Log: SLING-1780 - correctly handle missing .md5 / .sha1 files Modified: sling/trunk/check_staged_release.sh Modified: sling/trunk/check_staged_release.sh URL: http://svn.apache.org/viewvc/sling/trunk/check_staged_release.sh?rev=997835&r1=997834&r2=997835&view=diff ============================================================================== --- sling/trunk/check_staged_release.sh (original) +++ sling/trunk/check_staged_release.sh Thu Sep 16 16:45:32 2010 @@ -48,9 +48,14 @@ do for tp in md5 sha1 do - A="`cat $f.$tp 2>/dev/null`" - B="`openssl $tp < $f 2>/dev/null | sed 's/.*= *//' `" - if [ "$A" = "$B" ]; then CHKSUM="GOOD (`cat $f.$tp`)"; else CHKSUM="BAD!! : $A not equal to $B"; fi + if [ ! -f "$f.$tp" ] + then + CHKSUM="----" + else + A="`cat $f.$tp 2>/dev/null`" + B="`openssl $tp < $f 2>/dev/null | sed 's/.*= *//' `" + if [ "$A" = "$B" ]; then CHKSUM="GOOD (`cat $f.$tp`)"; else CHKSUM="BAD!! : $A not equal to $B"; fi + fi echo "$tp : ${CHKSUM}" done