[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[SCM] Debian package checker branch, master, updated. 2.5.11-22-gc696faa



The following commit has been merged in the master branch:
commit c696faad2eb9978144b4b3e58cfca12c182d9816
Author: Niels Thykier <niels@thykier.net>
Date:   Sun Dec 30 18:07:33 2012 +0100

    reporting/html_reports: Generate a source -> report mapping
    
    Signed-off-by: Niels Thykier <niels@thykier.net>

diff --git a/debian/changelog b/debian/changelog
index 1b48448..75e9572 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -43,6 +43,10 @@ lintian (2.5.12) UNRELEASED; urgency=low
       reclaimable sooner.  (Closes: #695839)
   * reporting/html_reports:
     + [NT] Update xrefs to include source version.
+    + [NT] Generate a text file suitable for Apache's RewriteMap to
+      map source packages to the maintainer report for that source.
+      Thanks to Joerg "Gannef" Jasper for the suggestion to use
+      RewriteMap.  (Closes: #696960)
   * reporting/templates/{packages,maintainer,tag}.tmpl:
     + [NT] Properly handle multiple versions of the same source and
       add versioned anchors to them.
diff --git a/reporting/html_reports b/reporting/html_reports
index 709d139..3c2895c 100755
--- a/reporting/html_reports
+++ b/reporting/html_reports
@@ -420,6 +420,24 @@ my %data = (
 );
 output_template ('maintainers.html', $templates{maintainers}, \%data);
 
+mkdir "$HTML_TMP_DIR/lookup-tables" or die "mkdir $HTML_TMP_DIR: $!";
+open my $table, '>', "$HTML_TMP_DIR/lookup-tables/source-packages"
+    or die "open $HTML_TMP_DIR/lookup-tables/source-packages: $!";
+
+my %table_seen = ();
+foreach my $source (sort keys %sources) {
+    my $first = 1;
+    foreach my $version (sort versions_comparator keys %{ $sources{$source} }) {
+        my $xref = $sources{$source}{$version};
+        print {$table} "$source maintainer/$xref\n" if $first;
+        print {$table} "$source/$version maintainer/$xref\n";
+        $first = 0;
+    }
+}
+
+close $table
+    or die "close $HTML_TMP_DIR/lookup-tables/source-packages: $!";
+
 # Write out the QA package list.  This is a space-delimited file that contains
 # the package name and then the error count, warning count, info count,
 # pedantic count, experimental count, and overridden tag count.

-- 
Debian package checker


Reply to: