fix misc breakage from plugin safe/rebuild data addition

master
Joey Hess 2008-08-03 18:17:13 -04:00
parent 3baa1742f3
commit 018321f2c8
1 changed files with 6 additions and 4 deletions

View File

@ -62,7 +62,7 @@ sub dumpvalues ($@) { #{{{
my $key=shift;
my %info=%{shift()};
next if $info{type} eq "internal" || $key eq "plugin";
next if $key eq "plugin" || $info{type} eq "internal";
push @ret, "\t# ".$info{description} if exists $info{description};
@ -92,8 +92,10 @@ sub gendump ($) { #{{{
foreach my $pair (IkiWiki::Setup::getsetup()) {
my $plugin=$pair->[0];
my $setup=$pair->[1];
push @ret, "", "\t# $plugin plugin";
push @ret, dumpvalues(\%setup, @{$setup});
my @values=dumpvalues(\%setup, @{$setup});
if (@values) {
push @ret, "", "\t# $plugin plugin", @values;
}
}
unshift @ret,