From: Joey Hess Date: Mon, 29 Sep 2008 22:05:39 +0000 (-0400) Subject: avoid unnecessarily rebuilding pages with complex conditionals X-Git-Tag: 2.66~46 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/bb4211e326bd16099cb353353055497f2fb5a0c9?ds=sidebyside;hp=bb4211e326bd16099cb353353055497f2fb5a0c9 avoid unnecessarily rebuilding pages with complex conditionals I noticed that ikiwiki/formatting was beilg rebuilt when any page changed. This turned out to be because it contained a complex conditional "enabled(foo) or enabled(bar)", and the conditional plugin did not notice that this consisted only of enabled() tests, and copied it unchanged into add_depends. Thus, the page's dependencies were satisfied by any page change. The fix is to beef up the parser so that it can handle that and more complex conditionals, and detect if they consist only of such tests. ---