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

[SCM] Debian package checker branch, master, updated. 2.5.2-76-g5ba9bba



The following commit has been merged in the master branch:
commit 5ba9bbaa55e7728c3e8d36fb617a7939c717ac48
Author: Niels Thykier <niels@thykier.net>
Date:   Thu Sep 1 10:04:46 2011 +0200

    Create a gzip'ed lintian.log on the website

diff --git a/debian/changelog b/debian/changelog
index 08c37ed..7d811d8 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -148,6 +148,11 @@ lintian (2.5.3) UNRELEASED; urgency=low
 
   * reporting/harness:
     + [NT] Added missing import statement.
+  * reporting/html_reports:
+    + [JW,NT] Create a gzip'ed version of the raw lintian.log.
+      (Closes: #637819)
+  * reporting/templates/index.tmpl:
+    + [NT] Added link to the new gzip'ed lintian.log.
 
   * t/*:
     + [JW,NT] Fixed test failures caused by unpacking the source
diff --git a/reporting/html_reports b/reporting/html_reports
index a653d86..ed42fa6 100755
--- a/reporting/html_reports
+++ b/reporting/html_reports
@@ -138,6 +138,8 @@ symlink("$LINTIAN_ROOT/doc/lintian.html", "$HTML_TMP_DIR/manual")
 if ($ARGV[0]) {
     symlink($ARGV[0], "$HTML_TMP_DIR/lintian.log")
         or die "cannot create symlink $HTML_TMP_DIR/lintian.log: $!\n";
+    system("gzip --best -c > \"$HTML_TMP_DIR/lintian.log.gz\" < \"$ARGV[0]\"")  == 0
+        or die "cannot create $HTML_TMP_DIR/lintian.log.gz.\n";
 }
 copy("$LINTIAN_ROOT/reporting/lintian.css", "$HTML_TMP_DIR/lintian.css")
     or die "cannot copy lintian.css to $HTML_TMP_DIR: $!\n";
diff --git a/reporting/templates/index.tmpl b/reporting/templates/index.tmpl
index 163810e..4581ee7 100644
--- a/reporting/templates/index.tmpl
+++ b/reporting/templates/index.tmpl
@@ -38,7 +38,7 @@
           <li><a href="packages_4.html">S-Z</a></li>
         </ul>
       </li>
-      <li><a href="lintian.log">Raw log</a> (warning: very large)</li>
+      <li><a href="lintian.log">Raw log</a> (warning: very large) [<a href="lintian.log.gz">Gzip'd</a>]</li>
     </ul>
   </div> <!-- index -->
 

-- 
Debian package checker


Reply to: