From 38bdd83cda111c78634c4e9824e872a26aa96fc2 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sat, 9 Jun 2007 23:10:58 +0200 Subject: [PATCH] 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. --- lib/Packages/DoShow.pm | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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; -- 2.39.2