From: Frank Lichtenheld Date: Sat, 9 Jun 2007 21:10:58 +0000 (+0200) Subject: lib/Packages/DoShow.pm: Don't shorten the dsc name X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=38bdd83cda111c78634c4e9824e872a26aa96fc2;p=deb%2Fpackages.git lib/Packages/DoShow.pm: Don't shorten the dsc name Suggested by Ben Hutchings I don't know exactly why this was done this way previously but myself also prefer the new version. --- diff --git a/lib/Packages/DoShow.pm b/lib/Packages/DoShow.pm index bd0dc21..3af5e3e 100644 --- a/lib/Packages/DoShow.pm +++ b/lib/Packages/DoShow.pm @@ -337,17 +337,12 @@ sub moreinfo { if (defined($files) and @$files) { foreach( @$files ) { my ($src_file_md5, $src_file_size, $src_file_name) = split /\s/o, $_; - my ($name, $server, $path); + my ($server, $path); # non-US hack ($server = lc $page->get_newest('archive')) =~ s/-//go; $server = $env->{$server}||$env->{us}; $path = "/$src_dir/$src_file_name"; - if ($src_file_name =~ /dsc$/) { - $name = 'dsc' - } else { - $name = $src_file_name; - } - push @downloads, { name => $name, server => $server, path => $path }; + push @downloads, { name => $src_file_name, server => $server, path => $path }; } } $contents->{src}{downloads} = \@downloads;