From: wurblzap%gmail.com <> Date: Sun, 13 Apr 2008 03:24:17 +0000 (+0000) Subject: Bug 428637 – Documentation doesn't build (and even less on Perl 5.10). X-Git-Tag: bugzilla-3.1.4~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32405051a2b162fe50b46e01a21b9aa838f20aa8;p=thirdparty%2Fbugzilla.git Bug 428637 – Documentation doesn't build (and even less on Perl 5.10). Patch by Marc Schumann ; r=mkanat,LpSolit; a=mkanat --- diff --git a/docs/en/xml/installation.xml b/docs/en/xml/installation.xml index e19fcf7b54..2f45eb11c2 100644 --- a/docs/en/xml/installation.xml +++ b/docs/en/xml/installation.xml @@ -1,5 +1,5 @@ - + Installing Bugzilla @@ -285,7 +285,7 @@ - CGI &min-cgi-ver; or CGI &min-mp-cgi-ver; if using mod_perl + CGI &min-cgi-ver; @@ -469,7 +469,7 @@ CGI - (&min-cgi-ver;) for mod_perl + (&min-mp-cgi-ver;) for mod_perl diff --git a/docs/makedocs.pl b/docs/makedocs.pl index ae5ba40574..17e6c33317 100644 --- a/docs/makedocs.pl +++ b/docs/makedocs.pl @@ -73,9 +73,11 @@ foreach my $module (@$modules, @$opt_modules) print ENTITIES '' . "\n"; } -# CGI is a special case, because it has an optional version *and* a required -# version. -my ($cgi_opt) = grep($_->{package} eq 'CGI', @$opt_modules); +# CGI is a special case, because for Perl versions below 5.10, it has an +# optional version *and* a required version. +# We check @opt_modules first, then @modules, and pick the first we get. +# We'll get the optional one then, if it is given, otherwise the required one. +my ($cgi_opt) = grep($_->{module} eq 'CGI', @$opt_modules, @$modules); print ENTITIES '{version} . '">' . "\n"; print ENTITIES "\n \n"; @@ -83,7 +85,8 @@ print ENTITIES "\n \n"; my $db_modules = DB_MODULE; foreach my $db (keys %$db_modules) { my $dbd = $db_modules->{$db}->{dbd}; - my $name = $dbd->{package}; + my $name = $dbd->{module}; + $name =~ s/::/-/g; $name = lc($name); my $version = $dbd->{version} || 'any'; my $db_version = $db_modules->{$db}->{'db_version'};