aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/utils/newexe
diff options
context:
space:
mode:
authorAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2008-06-10 17:48:16 +0000
committerAvatar Bo ├śrsted Andresen <bo.andresen@zlin.dk> 2008-06-10 17:48:16 +0000
commit52a5d9b789b0998cdd2009c08f0ff24710887be0 (patch)
treeb4a438535eb9f1b45e1874be91e80f0e9c5072d4 /paludis/repositories/e/ebuild/utils/newexe
parent97a2f024cee04b28694739c276492c5fdf15d456 (diff)
downloadpaludis-52a5d9b789b0998cdd2009c08f0ff24710887be0.tar.gz
paludis-52a5d9b789b0998cdd2009c08f0ff24710887be0.tar.xz
Make failure in do* fatal and implement nonfatal in exheres-0.
Diffstat (limited to 'paludis/repositories/e/ebuild/utils/newexe')
-rwxr-xr-xpaludis/repositories/e/ebuild/utils/newexe7
1 files changed, 3 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild/utils/newexe b/paludis/repositories/e/ebuild/utils/newexe
index 911a56581..358408871 100755
--- a/paludis/repositories/e/ebuild/utils/newexe
+++ b/paludis/repositories/e/ebuild/utils/newexe
@@ -22,15 +22,14 @@
# Place, Suite 330, Boston, MA 02111-1307 USA
export PATH="${PALUDIS_EBUILD_DIR:+${PALUDIS_EBUILD_DIR}/utils:}${PATH}"
+source "${PALUDIS_EBUILD_DIR}"/die_functions.bash
if [[ ! -d ${T} ]]; then
- echo "${0}: \${T} not valid; aborting" >&2
- exit 247
+ paludis_die_or_error "\${T} not valid; aborting"
fi
if [[ ${#} -ne 2 ]]; then
- echo "${0}: exactly two arguments needed" >&2
- exit 1
+ paludis_die_or_error "exactly two arguments needed"
fi
rm -rf "${T}/${2}"