From owner-svn-src-projects@FreeBSD.ORG Thu Dec 8 15:28:36 2011 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6B15106566B; Thu, 8 Dec 2011 15:28:36 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B6C5A8FC15; Thu, 8 Dec 2011 15:28:36 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pB8FSajq092352; Thu, 8 Dec 2011 15:28:36 GMT (envelope-from linimon@svn.freebsd.org) Received: (from linimon@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pB8FSaMX092350; Thu, 8 Dec 2011 15:28:36 GMT (envelope-from linimon@svn.freebsd.org) Message-Id: <201112081528.pB8FSaMX092350@svn.freebsd.org> From: Mark Linimon Date: Thu, 8 Dec 2011 15:28:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228352 - projects/portbuild/scripts X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2011 15:28:36 -0000 Author: linimon (doc,ports committer) Date: Thu Dec 8 15:28:36 2011 New Revision: 228352 URL: http://svn.freebsd.org/changeset/base/228352 Log: Robustness. Modified: projects/portbuild/scripts/prunefailure Modified: projects/portbuild/scripts/prunefailure ============================================================================== --- projects/portbuild/scripts/prunefailure Thu Dec 8 13:54:06 2011 (r228351) +++ projects/portbuild/scripts/prunefailure Thu Dec 8 15:28:36 2011 (r228352) @@ -47,8 +47,13 @@ cd $home pkgdir=${builddir}/packages/All index=${PORTSDIR}/${INDEXFILE} +if [ ! -f $index ]; then + echo "INDEX file $index does not exist, terminating!" + exit 1 +fi + if [ "`wc -l $index | awk '{print $1}'`" -lt 9000 ]; then - echo "INDEX is corrupted, terminating!" + echo "INDEX file $index is corrupted, terminating!" exit 1 fi