aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-04 16:16:50 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-04 16:16:50 -0400
commit7982c3c1773feef0d7f248ff3efe09dd2cd94ad8 (patch)
treeb7385457c636f6caf9b0d642541a2f965dba73b0
parent66852de77553a6131569436d4531c69a4515a4d3 (diff)
downloadikiwiki-7982c3c1773feef0d7f248ff3efe09dd2cd94ad8.tar
ikiwiki-7982c3c1773feef0d7f248ff3efe09dd2cd94ad8.tar.gz
postsparkline and progress: also contentless dependencies
-rw-r--r--IkiWiki/Plugin/postsparkline.pm2
-rw-r--r--IkiWiki/Plugin/progress.pm4
-rw-r--r--debian/changelog6
3 files changed, 6 insertions, 6 deletions
diff --git a/IkiWiki/Plugin/postsparkline.pm b/IkiWiki/Plugin/postsparkline.pm
index d2e5c2378..694d39575 100644
--- a/IkiWiki/Plugin/postsparkline.pm
+++ b/IkiWiki/Plugin/postsparkline.pm
@@ -48,7 +48,7 @@ sub preprocess (@) {
error gettext("unknown formula");
}
- add_depends($params{page}, $params{pages});
+ add_depends($params{page}, $params{pages}, content => 0);
my @list=sort { $params{timehash}->{$b} <=> $params{timehash}->{$a} }
pagespec_match_list(
diff --git a/IkiWiki/Plugin/progress.pm b/IkiWiki/Plugin/progress.pm
index 76d994acc..3b664f4cb 100644
--- a/IkiWiki/Plugin/progress.pm
+++ b/IkiWiki/Plugin/progress.pm
@@ -36,8 +36,8 @@ sub preprocess (@) {
$fill.="%";
}
elsif (defined $params{totalpages} and defined $params{donepages}) {
- add_depends($params{page}, $params{totalpages});
- add_depends($params{page}, $params{donepages});
+ add_depends($params{page}, $params{totalpages}, content => 0);
+ add_depends($params{page}, $params{donepages}, content => 0);
my @pages=keys %pagesources;
my $totalcount=0;
diff --git a/debian/changelog b/debian/changelog
index 1a76303b1..0e9bf512b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,9 +13,9 @@ ikiwiki (3.14159266) UNRELEASED; urgency=low
* Added support framework for multiple types of dependencies.
* Allow declaring that a dependency does not encompass the content of a
page. (By passing content => 0 to add_depends.)
- * pagecount, calendar: Use a contentless dependency, which makes these
- directives much less expensive to use, since page edits will
- no longer trigger an unnecessary update.
+ * pagecount, calendar, postsparkline, progress: Use a contentless dependency,
+ which makes these directives much less expensive to use, since page
+ edits will no longer trigger an unnecessary update.
* map: Use a contentless dependency unless show= is specified.
This makes simple maps efficient enough that they can be used on sidebars!
* inline: Use a contentless dependency in quick mode.