aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2008-08-02 19:01:21 +0200
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2008-08-02 19:01:21 +0200
commitaf9e861a4f454ac4ed37feab8d1237047c2dc3ac (patch)
treead6559e56de8c1026138637bc68c1de9be8c7434
parentabd4c4d73087be66653eb227ea583e15ff02738a (diff)
downloadpaludis-af9e861a4f454ac4ed37feab8d1237047c2dc3ac.tar.gz
paludis-af9e861a4f454ac4ed37feab8d1237047c2dc3ac.tar.xz
Add is_nonfatal(), allowing exlib functions to check whether they're called via nonfatal().
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/build_functions.bash5
1 files changed, 5 insertions, 0 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/build_functions.bash b/paludis/repositories/e/ebuild/exheres-0/build_functions.bash
index 7a01ace..0af313d 100644
--- a/paludis/repositories/e/ebuild/exheres-0/build_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/build_functions.bash
@@ -29,6 +29,11 @@ nonfatal()
PALUDIS_FAILURE_IS_FATAL= PALUDIS_FAILURE_IS_NONFATAL=yes "${@}"
}
+is_nonfatal()
+{
+ [[ -n ${PALUDIS_FAILURE_IS_NONFATAL} ]]
+}
+
expatch()
{
if [[ "${EBUILD_PHASE}" != "prepare" ]] ; then