From: Frank Lichtenheld Date: Sun, 11 May 2008 20:25:35 +0000 (+0200) Subject: [ARCHIVE] Work around bug if only one archive is used X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=5d677ca23ddd73735630296f9d3e46d276b3c40c;p=deb%2Fpackages.git [ARCHIVE] Work around bug if only one archive is used 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. --- diff --git a/lib/Packages/DoIndex.pm b/lib/Packages/DoIndex.pm index e1c5b6d..32b5f7c 100644 --- a/lib/Packages/DoIndex.pm +++ b/lib/Packages/DoIndex.pm @@ -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}";