[SCM] Debian package checker branch, master, updated. 2.5.2-81-gfa8334a
The following commit has been merged in the master branch:
commit fa8334ac8c6201418a9d97f15a18f11c307bf73c
Author: Niels Thykier <niels@thykier.net>
Date: Fri Sep 2 22:54:16 2011 +0200
Added link to the lintian source code in the footer
diff --git a/debian/changelog b/debian/changelog
index f032c9e..813d2e4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -164,6 +164,8 @@ lintian (2.5.3) UNRELEASED; urgency=low
+ [JW] Use LC_ALL rather than LANG, since LC_ALL overrules
LANG.
+ * reporting/{config,html_reports,templates/foot.tmpl}:
+ + [NT] Added a link to the Lintian source code.
* reporting/harness:
+ [NT] Added missing import statement.
* reporting/html_reports:
diff --git a/reporting/config b/reporting/config
index 27dfed6..f2246ff 100644
--- a/reporting/config
+++ b/reporting/config
@@ -17,6 +17,9 @@ $LINTIAN_UNPACK_LEVEL = "";
$LINTIAN_BIN_DIR = "$HOME/bin";
$LINTIAN_GPG_CHECK = 0;
+# Link to the Lintian source code
+$LINTIAN_SOURCE = "http://anonscm.debian.org/gitweb/?p=lintian/lintian.git";
+
$HISTORY = 0;
$HISTORY_DIR = "$HOME/history";
diff --git a/reporting/html_reports b/reporting/html_reports
index ed42fa6..f4c1715 100755
--- a/reporting/html_reports
+++ b/reporting/html_reports
@@ -34,7 +34,7 @@ use Text::Template ();
# FIXME: $statistics_file should be in all caps as well.
our ($LINTIAN_ROOT, $LINTIAN_LAB, $LINTIAN_ARCHIVEDIR, $LINTIAN_DIST,
$LINTIAN_SECTION, $LINTIAN_ARCH, $HTML_TMP_DIR, $statistics_file,
- $LINTIAN_AREA, $HISTORY, $HISTORY_DIR);
+ $LINTIAN_AREA, $HISTORY, $HISTORY_DIR, $LINTIAN_SOURCE);
# Read the configuration.
require './config';
@@ -657,7 +657,8 @@ sub output_template {
$data->{head} ||= sub { $templates{head}->fill_in (HASH => { page_title => $_[0],
path_prefix => '../' x ($_[1]||0),
%$data }) };
- $data->{foot} ||= sub { $templates{foot}->fill_in (HASH => $data) };
+ $data->{foot} ||= sub { $templates{foot}->fill_in (HASH => { LINTIAN_SOURCE => $LINTIAN_SOURCE,
+ %$data }) };
open (OUTPUT, '>', "$HTML_TMP_DIR/$file")
or die "creating $HTML_TMP_DIR/$file falied: $!\n";
$template->fill_in (OUTPUT => \*OUTPUT, HASH => $data)
diff --git a/reporting/templates/foot.tmpl b/reporting/templates/foot.tmpl
index b0e49f6..baa1e42 100644
--- a/reporting/templates/foot.tmpl
+++ b/reporting/templates/foot.tmpl
@@ -8,6 +8,11 @@
<a href="http://packages.debian.org/sid/reportbug">reportbug</a>
to report a bug against the lintian package.
</p>
+ <p>
+ The source code to Lintian is available under the GNU GPL version 2,
+ or (at your option) any later version. It can be downloaded from
+ <a href="{$LINTIAN_SOURCE}">{$LINTIAN_SOURCE}</a>.
+ </p>
<p>Page last updated: {$timestamp} using Lintian {$version}.</p>
</div>
--
Debian package checker
Reply to: