From 65c1a6e0dddf0d99af7adbd41484150d5fc6ef9c Mon Sep 17 00:00:00 2001 From: Dror Levin Date: Wed, 26 May 2010 23:23:38 +0300 Subject: Make utilities die on failure in EAPI 4, bug 273651 --- bin/ebuild-helpers/newdoc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/ebuild-helpers/newdoc') diff --git a/bin/ebuild-helpers/newdoc b/bin/ebuild-helpers/newdoc index 1bc6a05f8..1a353784d 100755 --- a/bin/ebuild-helpers/newdoc +++ b/bin/ebuild-helpers/newdoc @@ -2,13 +2,15 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh + if [[ -z ${T} ]] || [[ -z ${2} ]] ; then - echo "$0: Need two arguments, old file and new file" 1>&2 + helpers_die "$0: Need two arguments, old file and new file" exit 1 fi if [ ! -e "$1" ] ; then - echo "!!! ${0##*/}: $1 does not exist" 1>&2 + helpers_die "!!! ${0##*/}: $1 does not exist" exit 1 fi -- cgit v1.2.3-1-g7c22