]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
only remove page from influences when influences are not static
authorJoey Hess <joey@kitenet.net>
Thu, 22 Apr 2010 17:17:45 +0000 (13:17 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 22 Apr 2010 17:17:45 +0000 (13:17 -0400)
This matches what add_depends done

IkiWiki.pm

index 19ed69d758557666d848e2f2656b57fa7ee61ad7..ec8b32a639b5a7e319aa2615d29d00ead603b813 100644 (file)
@@ -2148,7 +2148,7 @@ sub pagespec_match_list ($$;@) {
                my $r=$sub->($p, %params, location => $page);
                error(sprintf(gettext("cannot match pages: %s"), $r))
                        if $r->isa("IkiWiki::ErrorReason");
-               unless ($r) {
+               unless ($r || $r->influences_static) {
                        $r->remove_influence($p);
                }
                $accum |= $r;