]> git.deb.at Git - deb/packages.git/commitdiff
lib/Packages/DoShow.pm: Ensure that the source download path starts with /
authorFrank Lichtenheld <Frank Lichtenheld frank@lichtenheld.de>
Sun, 3 Jun 2007 07:50:46 +0000 (09:50 +0200)
committerFrank Lichtenheld <Frank Lichtenheld frank@lichtenheld.de>
Sun, 3 Jun 2007 07:50:46 +0000 (09:50 +0200)
Otherwise we might get an invalid URL if the host lacks a trailing /

lib/Packages/DoShow.pm

index 05baeff8ea08463ed9624692ff7b5d604f26e39b..e1415886ae0e31b361a535d1d792aef5f2238a30 100644 (file)
@@ -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 {