improve messages
parent
10017feaec
commit
ee843c7523
|
@ -689,7 +689,6 @@ sub lockwiki (;$) { #{{{
|
|||
error("wiki is locked; waited $wait seconds without lock being freed (possible stuck process or stale lock?)");
|
||||
}
|
||||
else {
|
||||
debug("wiki is locked");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue