The following commit has been merged in the master branch:
commit 1e8baa56aa0bfa1efeae46153d4688ec67d71dfc
Author: Frank Lichtenheld <[EMAIL PROTECTED]>
Date:   Sat Feb 9 18:32:33 2008 +0100

    Packages::Dispatcher: Don't issue bogus 406 errors for index
    
    This hack really, really needs to be replaced with something more
    robust. Anyway...

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");

-- 
APT Archive Web-Frontend (Alioth repository)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to