From: Joey Hess Date: Tue, 15 Jul 2008 02:45:12 +0000 (-0400) Subject: use prune to delete rendered files X-Git-Tag: 2.54~86 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=76bda69a92075cbe73ba64232c69e32d7346b277;p=ikiwiki.git use prune to delete rendered files This handles deleting empty directories too. --- diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index f648a3f99..301fe40f6 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -157,8 +157,9 @@ sub migrate_to_internal { #{{{ debug("$oldname not found"); } if (-e $oldoutput) { + use IkiWiki::Render; debug("removing output file $oldoutput"); - unlink($oldoutput) || error ("$!"); + IkiWIki::prune($oldoutput) || error ("$!"); } }