aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-04-27 18:11:21 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-04-27 18:11:21 +0100
commita950df5854eef2dc6286deec2931d0d68f9a7b92 (patch)
treec9587349875fe4d01707c72b5667d282b4405b8c /paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
parent4ae48a93d3cff78807ee86bc13302d3ac410e2fa (diff)
downloadpaludis-a950df5854eef2dc6286deec2931d0d68f9a7b92.tar.gz
paludis-a950df5854eef2dc6286deec2931d0d68f9a7b92.tar.xz
EBUILD_PHASE is sometimes EXHERES_PHASE
Diffstat (limited to 'paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash')
-rw-r--r--paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash8
1 files changed, 4 insertions, 4 deletions
diff --git a/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash b/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
index b72fe4e..769a9cd 100644
--- a/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
+++ b/paludis/repositories/e/ebuild/exheres-0/exlib_functions.bash
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# vim: set sw=4 sts=4 et :
-# Copyright (c) 2007, 2008 Ciaran McCreesh
+# Copyright (c) 2007, 2008, 2009 Ciaran McCreesh
# Copyright (c) 2009 Bo ├śrsted Andresen
#
# This file is part of the Paludis package manager. Paludis is free software;
@@ -227,7 +227,7 @@ require()
default()
{
- [[ $(type -t "default_$(paludis_phase_to_function_name "${EBUILD_PHASE}")" ) == "function" ]] || \
- die "default_$(paludis_phase_to_function_name "${EBUILD_PHASE}") is not a function"
- default_$(paludis_phase_to_function_name "${EBUILD_PHASE}") "$@"
+ [[ $(type -t "default_$(paludis_phase_to_function_name "${!PALUDIS_EBUILD_PHASE_VAR}")" ) == "function" ]] || \
+ die "default_$(paludis_phase_to_function_name "${!PALUDIS_EBUILD_PHASE_VAR}") is not a function"
+ default_$(paludis_phase_to_function_name "${!PALUDIS_EBUILD_PHASE_VAR}") "$@"
}