From 5d677ca23ddd73735630296f9d3e46d276b3c40c Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sun, 11 May 2008 22:25:35 +0200 Subject: [PATCH] [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. --- lib/Packages/DoIndex.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}"; -- 2.39.2