]> git.deb.at Git - deb/packages.git/commitdiff
[ARCHIVE] Work around bug if only one archive is used
authorFrank Lichtenheld <frank@lichtenheld.de>
Sun, 11 May 2008 20:25:35 +0000 (22:25 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sun, 11 May 2008 20:25:35 +0000 (22:25 +0200)
This code assumes that the archive was given in the URL
if only one archive is requested. But for archive.debian.org
we only have one archive currently.

lib/Packages/DoIndex.pm

index e1c5b6d3667ef650ace6d0ead1b2231684128259..32b5f7c9d8ef6c5b47f2acf77aac105813ad5eee 100644 (file)
@@ -46,7 +46,7 @@ sub send_file {
     my $path = "";
     $path .= "source/" if $opts->{source};
     $path .= "$opts->{suite}[0]/";
-    $path .= "$opts->{archive}[0]/" if @{$opts->{archive}} == 1;
+#    $path .= "$opts->{archive}[0]/" if @{$opts->{archive}} == 1;
     $path .= "$opts->{subsection}[0]/" if @{$opts->{subsection}};
     $path .= "$opts->{priority}[0]/" if @{$opts->{priority}};
     $path .= "$file.$opts->{po_lang}.$opts->{format}";