aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-26 17:14:03 -0400
committerJoey Hess <joey@kitenet.net>2010-04-26 17:14:03 -0400
commit97b0c6e455f9edb99d9bd5145a8e82549ed54694 (patch)
tree19a12204cdf1c6604f9cbab64f98af6a60be2849 /IkiWiki
parenta6bd053638c67e5410c4a0a3742ba3825320b344 (diff)
downloadikiwiki-97b0c6e455f9edb99d9bd5145a8e82549ed54694.tar
ikiwiki-97b0c6e455f9edb99d9bd5145a8e82549ed54694.tar.gz
Fix removal of rendered files in rebuild mode.
Needed to handle the move of the .js files into ikiwiki/, but also this is a longstanding bug. Old pagemtime is not remembered in rebuild mode, and changing that would need a lot of changes. So instead, loop on pagectime, which is remembered. Change to remembering old pagesources info in rebuild mode. This seems safe enough.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Render.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm
index 871e005b2..b04664e41 100644
--- a/IkiWiki/Render.pm
+++ b/IkiWiki/Render.pm
@@ -409,7 +409,7 @@ sub find_del_files ($) {
my @del;
my @internal_del;
- foreach my $page (keys %pagemtime) {
+ foreach my $page (keys %pagectime) {
if (! $pages->{$page}) {
if (isinternal($page)) {
push @internal_del, $pagesources{$page};