From: Joey Hess Date: Wed, 21 Apr 2010 23:42:00 +0000 (-0400) Subject: fix false positive in link_types_changed X-Git-Tag: 3.20100427~79 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1a09cddd39d4e15c442973dc256bf91b3c27997c;p=ikiwiki.git fix false positive in link_types_changed loadindex does not bother populating oldtypedlinks if there is no link type. However, the code in link_types_changed assumed that if oldtypedlinks is not defined, and typedlinks is, they must differ. --- diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index bbf8f915e..0e5336f22 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -526,7 +526,7 @@ sub link_types_changed ($$) { my $old = shift; return 0 if !defined $new && !defined $old; - return 1 if !defined $new || !defined $old; + return 1 if (!defined $new && %$old) || (!defined $old && %$new); while (my ($type, $links) = each %$new) { foreach my $link (keys %$links) {