]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/DoShow.pm
Merge branch 'master' into archive-master
[deb/packages.git] / lib / Packages / DoShow.pm
index 3964e7853ed54d30aa7635cc94e96b854383c9de..9f59690589d59ec1745a27dc937fd24ee2bda1b3 100644 (file)
@@ -241,11 +241,13 @@ sub do_show {
                        #
                        # more information
                        #
+                       my $changesandcopy = 0;
+                       $changesandcopy = 1 if suites_cmp($suite, "woody") >= 0;
                        moreinfo( name => $pkg, data => $page, vars => \%contents,
                                  opts => $opts,
                                  env => \%FTP_SITES,
                                  bugreports => 1, sourcedownload => 1,
-                                 changesandcopy => 0, maintainers => 1,
+                                 changesandcopy => $changesandcopy, maintainers => 1,
                                  search => 1 );
                    } else { # unless $page->is_virtual
                        $contents{is_virtual} = 1;
@@ -321,11 +323,13 @@ sub do_show {
                    #
                    # more information
                    #
+                   my $changesandcopy = 0;
+                   $changesandcopy = 1 if suites_cmp($suite, "woody") >= 0;
                    moreinfo( name => $pkg, data => $page, vars => \%contents,
                              opts => $opts,
                              env => \%FTP_SITES,
                              bugreports => 1,
-                             changesandcopy => 0, maintainers => 1,
+                             changesandcopy => $changesandcopy, maintainers => 1,
                              search => 1, is_source => 1 );
 
                } # else (unless $opts->{source})
@@ -356,6 +360,7 @@ sub moreinfo {
     if ($info{sourcedownload}) {
        $contents->{src}{url} = make_url($source,'',{source=>'source'});
        $contents->{src}{pkg} = $source;
+       $contents->{src}{version} = $source_version;
 
        my @downloads;
        my $files = $page->get_src( 'files' );