aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-04-04 09:40:19 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-04-04 09:40:19 +0000
commitb4e5363cc0f5fe860a6756024478b694f637c442 (patch)
tree7d63583edac0e100b516f1b5402c5495953cd729
parent106062d132c496b805c85344fca1b7d2a199f53d (diff)
downloadpaludis-b4e5363cc0f5fe860a6756024478b694f637c442.tar.gz
paludis-b4e5363cc0f5fe860a6756024478b694f637c442.tar.xz
Don't try to do elog things when pretend installing.
-rw-r--r--hooks/demos/elog.bash.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/hooks/demos/elog.bash.in b/hooks/demos/elog.bash.in
index 98d1261..ee7fdbf 100644
--- a/hooks/demos/elog.bash.in
+++ b/hooks/demos/elog.bash.in
@@ -54,6 +54,8 @@ case "${HOOK}" in
"Use of elog.bash in phase \"${HOOK}\" is deprecated, see comments at beginning of file for updated instructions"
fi
+ ${PRETEND} && exit 0
+
rm -f "${logfile}"
touch "${logfile}" || die "Couldn't create '${logfile}' for elog hooks"
if [[ -n "${PALUDIS_REDUCED_GID}" ]] ; then