X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=nokia-lintian%2Freporting%2Ftemplates%2Fmaintainer.tmpl;fp=nokia-lintian%2Freporting%2Ftemplates%2Fmaintainer.tmpl;h=18ec72adf74f364bcb0ace46767a4226865da33a;hb=1975b83207a518d59ef6b04c7c16233cb353ca86;hp=0000000000000000000000000000000000000000;hpb=208f636c44e0ec2b53c70aaed2399d8e9cf0e741;p=maemian diff --git a/nokia-lintian/reporting/templates/maintainer.tmpl b/nokia-lintian/reporting/templates/maintainer.tmpl new file mode 100644 index 0000000..18ec72a --- /dev/null +++ b/nokia-lintian/reporting/templates/maintainer.tmpl @@ -0,0 +1,104 @@ +{ head("Lintian Report for $name", 1) } +

{$name}

+ +

+ At the time of the last Lintian run, the following possible problems + were found in packages maintained by {$maintainer}, listed by source + package. +{ + if ($errors) { + qq( See also the full report, including) + . " info, experimental and overridden tags."; + } else { + qq( See also the report showing) + . " only errors and warnings."; + } +} + Also see their + QA + overview. +

+ +{ + # Show the summary only if the number of packages is within a certain + # range. + my $num_packages = keys(%packages) + keys(%uploads); + if ($num_packages > 1 and $num_packages < 20) { + $OUT .= qq(
\n \n
\n"; + } +} +
+ +{ + # We get a hash of package names to a hash of versions to a list of tags. + # Create a list with the package information as the title and the tags as + # the value. + for my $source (sort (keys (%packages), keys (%uploads))) { + my ($data, $upload); + if ($packages{$source}) { + $data = $packages{$source}; + } else { + $data = $uploads{$source}; + $upload = 1; + } + for my $version (sort keys %$data) { + my $tags = $data->{$version}; + my $first = 1; + my $binary = ''; + my $tag = ''; + for my $info (@$tags) { + if ($errors) { + next unless $info->{code} eq 'E' or $info->{code} eq 'W'; + } + + my $is_binary = $info->{type} eq "binary"; + my $new_binary = $info->{package} ne $binary if $is_binary; + + if ($first) { + $OUT .= qq(
\n); + $OUT .= qq(

); + $OUT .= "$source ($version)"; + $OUT .= " [Uploader]" if $upload; + $OUT .= "

\n"; + $OUT .= qq( \n
\n); + $OUT .= qq( \n \n \n" unless $first; + $OUT .= qq(

$info->{package}

\n); + $OUT .= qq( \n \n" unless $first or $new_binary; + $OUT .= "
  • \n"; + $OUT .= qq( ); + $OUT .= "$info->{code} "; + $OUT .= qq(); + $OUT .= "$info->{tag}\n"; + $OUT .= qq( \n
  • \n \n"; + } + } +} +{ foot() }