From owner-svn-ports-all@FreeBSD.ORG Wed Oct 31 21:50:26 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13D4DC00; Wed, 31 Oct 2012 21:50:26 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F01CC8FC0A; Wed, 31 Oct 2012 21:50:25 +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 q9VLoPmj039808; Wed, 31 Oct 2012 21:50:25 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9VLoPEV039806; Wed, 31 Oct 2012 21:50:25 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201210312150.q9VLoPEV039806@svn.freebsd.org> From: Jung-uk Kim Date: Wed, 31 Oct 2012 21:50:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306767 - head/java/javavmwrapper/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 21:50:26 -0000 Author: jkim Date: Wed Oct 31 21:50:25 2012 New Revision: 306767 URL: http://svn.freebsd.org/changeset/ports/306767 Log: Shut up noise when there is no JDK/JRE to register. Reviewed by: glewis (maintainer) Feature safe: yes Modified: head/java/javavmwrapper/files/pkg-install.in Modified: head/java/javavmwrapper/files/pkg-install.in ============================================================================== --- head/java/javavmwrapper/files/pkg-install.in Wed Oct 31 21:42:03 2012 (r306766) +++ head/java/javavmwrapper/files/pkg-install.in Wed Oct 31 21:50:25 2012 (r306767) @@ -26,7 +26,7 @@ _find_expr='-depth 2 -regex .*/bin/java' for dir in ${_excl_dirs}; do _find_expr="${_find_expr} ! -regex ${dir}/bin/java" done -for jvm in `cd "${LOCALBASE}" && find *jdk* *jre* ${_find_expr}`; do +for jvm in `cd "${LOCALBASE}" && find *jdk* *jre* ${_find_expr} 2> /dev/null`; do if [ -x "${LOCALBASE}/${jvm}" ]; then "${PKG_PREFIX}"/bin/registervm "${LOCALBASE}/${jvm}" > /dev/null 2>&1 fi