rebuild on template removal
authorJoey Hess <joey@kitenet.net>
Sun, 25 Apr 2010 01:13:53 +0000 (21:13 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 25 Apr 2010 01:13:53 +0000 (21:13 -0400)
IkiWiki/Render.pm

index d0c7e58a3a00f0dccf46f00981a34af40b59d43c..871e005b2aca84026d09111c83fb228deff66f3b 100644 (file)
@@ -593,7 +593,7 @@ sub render_dependent ($$$$$$$) {
        my %lc_exists_changed = map { lc(pagename($_)) => 1 } @exists_changed;
 
        foreach my $p ("templates/page.tmpl", keys %{$depends_simple{""}}) {
-               if ($rendered{$p}) {
+               if ($rendered{$p} || grep { $_ eq $p } @$del) {
                        foreach my $f (@$files) {
                                next if $rendered{$f};
                                render($f, sprintf(gettext("building %s, which depends on %s"), $f, $p));