Add missing plugin section, and deal with missing sections with a warning.
parent
e2405005e6
commit
1d6eb13e2b
|
@ -18,6 +18,7 @@ sub getsetup () {
|
|||
plugin => {
|
||||
safe => 0,
|
||||
rebuild => undef,
|
||||
section => "special-purpose",
|
||||
},
|
||||
add_underlays => {
|
||||
type => "string",
|
||||
|
|
|
@ -223,6 +223,10 @@ sub commented_dump ($$) {
|
|||
my $setup=$pair->[1];
|
||||
my %s=@{$setup};
|
||||
my $section=$s{plugin}->{section};
|
||||
if (! defined $section) {
|
||||
print STDERR "warning: missing section in $plugin\n";
|
||||
$section="other";
|
||||
}
|
||||
push @{$section_plugins{$section}}, $plugin;
|
||||
if (@{$section_plugins{$section}} == 1) {
|
||||
push @ret, "", $indent.("#" x 70), "$indent# $section plugins",
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
ikiwiki (3.20130213) UNRELEASED; urgency=low
|
||||
|
||||
* Allow dots in directive parameter names. (tango)
|
||||
* Add missing plugin section, and deal with missing sections with a warning.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Fri, 15 Feb 2013 17:23:12 -0400
|
||||
|
||||
|
|
Loading…
Reference in New Issue