]> git.deb.at Git - deb/packages.git/commitdiff
Packages::DoIndex: No translated allpackages.*.txt.gz available
authorFrank Lichtenheld <frank@lichtenheld.de>
Fri, 15 Feb 2008 01:04:10 +0000 (02:04 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 16 Feb 2008 00:47:19 +0000 (01:47 +0100)
The reimplementation of create_index_pages dropped the translated
allpackages.*.txt.gz, so don't try to serve them.

lib/Packages/DoIndex.pm

index 3129b0b9c7fb950cc000cf0803485e6a65951af8..e1c5b6d3667ef650ace6d0ead1b2231684128259 100644 (file)
@@ -39,6 +39,9 @@ sub send_file {
                              "@{$opts->{suite}}" ) );
     }
 
+    if ($opts->{format} eq 'txt.gz') {
+       $opts->{po_lang} = 'en';
+    }
     my $wwwdir = "$TOPDIR/www";
     my $path = "";
     $path .= "source/" if $opts->{source};