From: joey Date: Fri, 26 May 2006 14:54:47 +0000 (+0000) Subject: fix call to getctime X-Git-Tag: 1.4~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2e95062df8326a46d91112214a0a80886692b1a4;p=ikiwiki.git fix call to getctime --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index 5bc7f6ebb..51e7a194f 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -347,8 +347,12 @@ sub refresh () { #{{{ push @add, $file; $links{$page}=[]; $pagesources{$page}=$file; - $pagectime{$page}=mtime(srcfile($file)) - unless exists $pagectime{$page}; + if ($config{getctime} && -e "$config{srcdir}/$file") { + $pagectime{$page}=rcs_getctime("$config{srcdir}/$file"); + } + elsif (! exists $pagectime{$page}) { + $pagectime{$page}=mtime(srcfile($file)); + } } } my @del;