From: Frank Lichtenheld Date: Sun, 3 Jun 2007 07:50:46 +0000 (+0200) Subject: lib/Packages/DoShow.pm: Ensure that the source download path starts with / X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=978902a04d9266307b9621613cd10435f98342f8;p=deb%2Fpackages.git lib/Packages/DoShow.pm: Ensure that the source download path starts with / Otherwise we might get an invalid URL if the host lacks a trailing / --- diff --git a/lib/Packages/DoShow.pm b/lib/Packages/DoShow.pm index 05baeff..e141588 100644 --- a/lib/Packages/DoShow.pm +++ b/lib/Packages/DoShow.pm @@ -339,7 +339,7 @@ sub moreinfo { # non-US hack ($server = lc $page->get_newest('archive')) =~ s/-//go; $server = $env->{$server}||$env->{us}; - $path = "$src_dir/$src_file_name"; + $path = "/$src_dir/$src_file_name"; if ($src_file_name =~ /dsc$/) { $name = 'dsc' } else {