diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-08 16:49:03 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-08 16:49:03 -0400 |
commit | c57908b9d073500608d656adaf2bd3048c8cef67 (patch) | |
tree | d696a255ec08b91522ea14479b8b962152ae85d8 /IkiWiki/Plugin/orphans.pm | |
parent | f2b3d1341447cbf29189ab490daae418fbe5d02d (diff) | |
download | ikiwiki-c57908b9d073500608d656adaf2bd3048c8cef67.tar ikiwiki-c57908b9d073500608d656adaf2bd3048c8cef67.tar.gz |
change how dependency types are specified to add_depends
Also, this fixes 2 bugs in dependency info.
Diffstat (limited to 'IkiWiki/Plugin/orphans.pm')
-rw-r--r-- | IkiWiki/Plugin/orphans.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/orphans.pm b/IkiWiki/Plugin/orphans.pm index ae330b23b..93b8ec440 100644 --- a/IkiWiki/Plugin/orphans.pm +++ b/IkiWiki/Plugin/orphans.pm @@ -26,10 +26,10 @@ sub preprocess (@) { # Needs to update whenever a link changes, on any page # since any page could link to one of the pages we're # considering as orphans. - add_depends($params{page}, "*", links => 1); + add_depends($params{page}, "*", deptype("links")); # Also needs to update whenever potential orphans are added or # removed. - add_depends($params{page}, $params{pages}, presence => 1); + add_depends($params{page}, $params{pages}, deptype("presence")); my @orphans; foreach my $page (pagespec_match_list( |