improve messages
[ikiwiki.git] / IkiWiki / Plugin / aggregate.pm
index 5024975ac8603223191b9a36525c6a650d6bec77..eb5067d9f5977cafea958e6e5849c4fd866a34c1 100644 (file)
@@ -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();