From: intrigeri Date: Mon, 10 Nov 2008 11:48:27 +0000 (+0100) Subject: po: prevent a slave page to depend on itself X-Git-Tag: 3.15~374 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aef1b0f5035a1b6b6d35d831dc026118853d99d2;p=ikiwiki.git po: prevent a slave page to depend on itself It has never caused harm yet, but it might in the future. Signed-off-by: intrigeri --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 7bc702eca..d2e6bbdbc 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -496,7 +496,7 @@ sub pagetemplate (@) { #{{{ elsif (istranslation($page)) { add_depends($page, $masterpage); foreach my $translation (values %{$translations{$masterpage}}) { - add_depends($page, $translation); + add_depends($page, $translation) unless $page eq $translation; } } }