diff options
author | Joey Hess <joey@kitenet.net> | 2011-02-09 13:56:05 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-02-09 13:56:05 -0400 |
commit | 91a408ec77036252894e5c31012124e4770f9333 (patch) | |
tree | 2ac9c44abdd6d68179fffa70c4b9d20eaa46f1fd | |
parent | 3d7147992ab24d953c87b91f75851ca45895073c (diff) |
minor optimisation
Assume the aggregated content is only going to be in one of the
directories, and so stop if it's successfully removed from the
transientdir.
-rw-r--r-- | IkiWiki/Plugin/aggregate.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index 7d4565342..419b40fdb 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -390,8 +390,8 @@ sub garbage_collect () { # any guid whose feed is gone should be removed if (! exists $feeds{$guid->{feed}}) { if (exists $guid->{page}) { - unlink "$config{srcdir}/".htmlfn($guid->{page}); - unlink $IkiWiki::Plugin::transient::transientdir."/".htmlfn($guid->{page}); + unlink $IkiWiki::Plugin::transient::transientdir."/".htmlfn($guid->{page}) + || unlink "$config{srcdir}/".htmlfn($guid->{page}); } delete $guids{$guid->{guid}}; } |