aboutsummaryrefslogtreecommitdiff
path: root/hooks/demos
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-05-18 10:42:51 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-05-18 10:42:51 +0000
commit4e642e700521aa4ab73012f4c0f1a84d7f5a0bc5 (patch)
tree42e4265e5e0e06f5e364714e8c13a44af91033e9 /hooks/demos
parentd9e139d5563d97e4247ed59d16a4dca4cf282053 (diff)
downloadpaludis-4e642e700521aa4ab73012f4c0f1a84d7f5a0bc5.tar.gz
paludis-4e642e700521aa4ab73012f4c0f1a84d7f5a0bc5.tar.xz
Don't elog in pretend, config and metadata phases.
Diffstat (limited to 'hooks/demos')
-rw-r--r--hooks/demos/elog.bash.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/hooks/demos/elog.bash.in b/hooks/demos/elog.bash.in
index 2b0cb06ff..ba4361b51 100644
--- a/hooks/demos/elog.bash.in
+++ b/hooks/demos/elog.bash.in
@@ -22,6 +22,10 @@
#
# You should ensure that it has execute permissions.
+case "${EBUILD_PHASE}" in
+ config|pretend|metadata) return
+esac
+
source ${PALUDIS_EBUILD_DIR}/echo_functions.bash
logfile="${PALUDIS_HOOKS_TMPDIR:-${ROOT}/var/tmp/paludis}/elog.${PALUDIS_PID}"