Fix incorrect influence info returned by a failing link() pagespec, that could lead...
[ikiwiki] / doc / bugs / depends_simple_mixup.mdwn
1 The [[bugs]] page, at least before I commit this, has a bug at the top that
2 has been modified to link to done, and ikiwiki's dependency calculations
3 failed to notice and update the bugs page. Looking at the indexdb, I saw
4 that the page was not included in the `depends_simple` of the bugs page. 
5
6 I was able to replicate the problem locally by starting off with the page
7 marked done (when it did appear in the bugs page `depends_simple`
8 (appropriatly as a link dependency, since a change to the page removing the
9 link would make it match)), then removing the done link. 
10
11 At that point, it vanished from `depends_simple`. Presumably because
12 the main (pagespec) depends for the bugs page now matched it, as a content
13 dependency. But, it seems to me it should still be listed in
14 `depends_simple` here. This, I think, is the cause of the bug.
15
16 Then re-add the done link, and the dependency calc code breaks down,
17 not noticing that bugs dependeded on the page and needs to be updated.
18
19 Ok.. Turns out this was not a problem with the actual influences
20 calculation or dependency calculation code. Whew! `match_link`
21 just didn't set the influence correctly when failing. [[fixed|done]]
22
23 --[[Joey]]