commit: 61667248130fcf279047472875d03fa65520d084 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Sep 21 17:19:12 2017 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Mar 11 11:43:41 2018 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=61667248
nonfatal: Implement fallback executable for EAPI 7 EAPI 7 specifies that nonfatal has to be implemented both as a bash function and a fallback executable, so that it can be used e.g. via find/xargs. Bug: https://bugs.gentoo.org/622894 bin/ebuild-helpers/nonfatal | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bin/ebuild-helpers/nonfatal b/bin/ebuild-helpers/nonfatal new file mode 100755 index 000000000..5da07cc71 --- /dev/null +++ b/bin/ebuild-helpers/nonfatal @@ -0,0 +1,14 @@ +#!/bin/bash +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +source "${PORTAGE_BIN_PATH}"/isolated-functions.sh || exit 1 + +if ! ___eapi_has_nonfatal; then + die "${0##*/} not supported in this EAPI" +fi +if [[ $# -lt 1 ]]; then + die "${0##*/}: Missing argument" +fi + +PORTAGE_NONFATAL=1 exec "$@"
