X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=lib%2FPackages%2FDispatcher.pm;h=75264a006cf859d93b34d0bab59efc7abcc5687c;hb=d167a5b200d9feb28e05f0299a81fb677c10fc7d;hp=9f844f2e2d175240e4d5eb06887b59a6f08e1c4e;hpb=ca605dba77e7901e6b99a59fe8d8a9de776614b7;p=deb%2Fpackages.git diff --git a/lib/Packages/Dispatcher.pm b/lib/Packages/Dispatcher.pm index 9f844f2..75264a0 100755 --- a/lib/Packages/Dispatcher.pm +++ b/lib/Packages/Dispatcher.pm @@ -315,6 +315,7 @@ sub do_dispatch { #FIXME: ugly hack unless (($what_to_do eq 'allpackages' and $opts{format} =~ /^(html|txt\.gz)/) + || ($what_to_do eq 'index' and $opts{format} eq 'html') || -e "$TEMPLATEDIR/$opts{format}/${what_to_do}.tmpl") { fatal_error( $cat->g("requested format not available for this document"), "406 requested format not available");