aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-05-21 03:00:45 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-05-21 03:00:45 +0000
commitee843c7523c9b0f615ee467e26e7ff4b35514c78 (patch)
tree16e46cb29288662318ba2b6b1e6eff924923d33e /IkiWiki
parent10017feaec75703b484f4d4f066e9d77cc7625ce (diff)
downloadikiwiki-ee843c7523c9b0f615ee467e26e7ff4b35514c78.tar
ikiwiki-ee843c7523c9b0f615ee467e26e7ff4b35514c78.tar.gz
improve messages
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/aggregate.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm
index 5024975ac..eb5067d9f 100644
--- a/IkiWiki/Plugin/aggregate.pm
+++ b/IkiWiki/Plugin/aggregate.pm
@@ -33,8 +33,10 @@ sub getopt () { #{{{
sub checkconfig () { #{{{
if ($config{aggregate} && ! ($config{post_commit} &&
IkiWiki::commit_hook_enabled())) {
- # don't wait for the lock
- IkiWiki::lockwiki(0) || exit 1;
+ if (! IkiWiki::lockwiki(0)) {
+ debug("wiki is locked by another process, not aggregating");
+ exit 1;
+ }
loadstate();
IkiWiki::loadindex();