]> git.deb.at Git - deb/packages.git/commitdiff
lib/Packages/DoShow.pm: Don't shorten the dsc name
authorFrank Lichtenheld <frank@lichtenheld.de>
Sat, 9 Jun 2007 21:10:58 +0000 (23:10 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 9 Jun 2007 21:53:31 +0000 (23:53 +0200)
Suggested by Ben Hutchings <ben decadent org uk>

I don't know exactly why this was done this way previously but
myself also prefer the new version.

lib/Packages/DoShow.pm

index bd0dc216f82f3f40cd1b6085b8ca5620c553f82e..3af5e3e7c83056a118a40dcd6ac587677903752b 100644 (file)
@@ -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;