set dependency hash value properly for new dependency types
authorJoey Hess <joey@gnu.kitenet.net>
Sat, 3 Oct 2009 19:37:15 +0000 (15:37 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sat, 3 Oct 2009 19:37:15 +0000 (15:37 -0400)
Just "1" won't cut it anymore; we need to list all the dependency types.

ikiwiki-transition

index 8a20cf655f021b328eef5afe509a75908f202d2a..c50a748e87410da8c40f6e905f07d87db059033f 100755 (executable)
@@ -299,7 +299,7 @@ sub oldloadindex {
                        $pagemtime{$page}=$items{mtime}[0];
                        $oldlinks{$page}=[@{$items{link}}];
                        $links{$page}=[@{$items{link}}];
-                       $depends{$page}={ $items{depends}[0] => 1 } if exists $items{depends};
+                       $depends{$page}={ $items{depends}[0] => $IkiWiki::DEPEND_CONTENT | $IkiWiki::DEPEND_EXISTS } if exists $items{depends};
                        $destsources{$_}=$page foreach @{$items{dest}};
                        $renderedfiles{$page}=[@{$items{dest}}];
                        $pagecase{lc $page}=$page;