From c2e2da6ee2834d6ab68d06048588cdf3a27d3691 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 22 May 2009 13:09:11 -0400 Subject: ikiwiki-transition: deduplinks was broken and threw away all metadata stored by plugins in the index. Fix this bug. --- ikiwiki-transition | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ikiwiki-transition') diff --git a/ikiwiki-transition b/ikiwiki-transition index 17a347c20..398b1a3c8 100755 --- a/ikiwiki-transition +++ b/ikiwiki-transition @@ -184,7 +184,9 @@ sub moveprefs { } sub deduplinks { - setstatedir(shift); + loadsetup(shift); + IkiWiki::loadplugins(); + IkiWiki::checkconfig(); IkiWiki::loadindex(); foreach my $page (keys %links) { my %l; @@ -237,7 +239,7 @@ sub usage { print STDERR "\tmoveprefs setupfile\n"; print STDERR "\thashpassword setupfile|srcdir\n"; print STDERR "\tindexdb setupfile|srcdir\n"; - print STDERR "\tdeduplinks setupfile|srcdir\n"; + print STDERR "\tdeduplinks setupfile\n"; exit 1; } -- cgit v1.2.3