lintian: r151 - in trunk: checks debian testset testset/foo++/debian
Author: he
Date: 2004-04-14 01:56:59 +0200 (Wed, 14 Apr 2004)
New Revision: 151
Modified:
trunk/checks/changelog-file
trunk/checks/changelog-file.desc
trunk/checks/debian-readme
trunk/checks/debian-readme.desc
trunk/debian/changelog
trunk/testset/foo++/debian/changelog
trunk/testset/foo++/debian/rules
trunk/testset/info_tags.foo++
trunk/testset/tags.foo++
Log:
checks/changelog-file:
+ [HE] Check for the dh_make template email address in the changelog
entries. Patch by Steffen Moeller <moeller@pzr.uni-rostock.de>,
thanks! (Closes: #199903)
checks/debian-readme:
+ [HE] Add check for the dh_make template email address. Patch by Steffen
Moeller <moeller@pzr.uni-rostock.de>, thanks!
Modified: trunk/checks/changelog-file
===================================================================
--- trunk/checks/changelog-file 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/checks/changelog-file 2004-04-13 23:56:59 UTC (rev 151)
@@ -218,6 +218,9 @@
if (defined $prefix && defined $suffix && /^\Q$prefix\E\s*add-log-mailing-address:.*\Q$suffix\E$/) {
print "E: $pkg $type: debian-changelog-file-contains-obsolete-user-emacs-settings\n";
}
+ if (/^\s*--[^<]*<[^>\@]+\@unknown>/) {
+ print "E: $pkg $type: debian-changelog-file-contains-debmake-default-email-address\n";
+ }
}
close IN;
Modified: trunk/checks/changelog-file.desc
===================================================================
--- trunk/checks/changelog-file.desc 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/checks/changelog-file.desc 2004-04-13 23:56:59 UTC (rev 151)
@@ -90,6 +90,11 @@
.
(setq debian-changelog-mailing-address "userid@debian.org")
+Tag: debian-changelog-file-contains-debmake-default-email-address
+Type: error
+Info: The changelog file contains an email address (<..@unknown>)
+ that was not updated to the maintainer's real address.
+
Tag: debian-changelog-file-uses-obsolete-national-charset
Type: error
Info: The Debian changelog file must be valid UTF-8, an encoding of
Modified: trunk/checks/debian-readme
===================================================================
--- trunk/checks/debian-readme 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/checks/debian-readme 2004-04-13 23:56:59 UTC (rev 151)
@@ -41,11 +41,12 @@
"<possible notes regarding this package - if none, delete this file>" .
")\n\n" .
".*<.*>,.*\n";
-
if ($readme =~ m/$template/iom) {
tag_warn("readme-debian-is-debmake-template");
} elsif ($readme =~ m/^So far nothing to say/m) {
tag_warn("readme-debian-contains-debmake-template");
+} elsif ($readme =~ m/^\s*-- [^<]*<[^> ]+.\@unknown>/m) {
+ tag_warn("readme-debian-contains-debmake-default-email-address");
}
exit 0;
Modified: trunk/checks/debian-readme.desc
===================================================================
--- trunk/checks/debian-readme.desc 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/checks/debian-readme.desc 2004-04-13 23:56:59 UTC (rev 151)
@@ -19,3 +19,8 @@
Info: The README.Debian file installed by this package contains the
deb-make default phrase "So far nothing to say". If there is nothing
to say in the file, then it is best removed.
+
+Tag: readme-debian-contains-debmake-default-email-address
+Type: error
+Info: The README.Debian file contains an email address (<..@unknown>)
+ that was not updated to the maintainer's real address.
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/debian/changelog 2004-04-13 23:56:59 UTC (rev 151)
@@ -18,6 +18,10 @@
* checks/binaries:
+ [JvW] Ignore static binaries in /usr/lib/debug
+ * checks/changelog-file:
+ + [HE] Check for the dh_make template email address in the changelog
+ entries. Patch by Steffen Moeller <moeller@pzr.uni-rostock.de>,
+ thanks! (Closes: #199903)
* checks/common_data:
+ [HE] Change known_obsolete_fields to allow checks/fields to
report the Bugs field als obsolete.
@@ -33,6 +37,9 @@
* checks/debconf{,.desc}:
+ [JvW] Add an error for a bogus default for a boolean template
(Closes: #236846)
+ * checks/debian-readme:
+ + [HE] Add check for the dh_make template email address. Patch by Steffen
+ Moeller <moeller@pzr.uni-rostock.de>, thanks!
* checks/deb-format:
+ [HE] Add a check for the data member of a deb. dpkg 1.11 introduces
support for configurable compression algorithms (bzip2, for example),
Modified: trunk/testset/foo++/debian/changelog
===================================================================
--- trunk/testset/foo++/debian/changelog 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/testset/foo++/debian/changelog 2004-04-13 23:56:59 UTC (rev 151)
@@ -1,3 +1,11 @@
+foo++ (5) unstable; urgency=low
+
+ * Add a fake README.Debian to trigger a warning.
+ * This should trigger
+ debian-changelog-file-contains-debmake-default-email-address.
+
+ -- Marc 'HE' Brockschmidt <he@unknown> Wed, 14 Apr 2004 01:35:47 +0200
+
foo++ (4) unstable; urgency=low
* This changelog now includes a ISO-8859-1 character: '�
Modified: trunk/testset/foo++/debian/rules
===================================================================
--- trunk/testset/foo++/debian/rules 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/testset/foo++/debian/rules 2004-04-13 23:56:59 UTC (rev 151)
@@ -12,6 +12,8 @@
install -d debian/$(foo)/usr/share/doc/$(foo)
cp debian/changelog debian/$(foo)/usr/share/doc/$(foo)/changelog
gzip -9 debian/$(foo)/usr/share/doc/$(foo)/changelog
+ cp debian/README.Debian debian/$(foo)/usr/share/doc/$(foo)/README.Debian
+ gzip -9 debian/$(foo)/usr/share/doc/$(foo)/README.Debian
dpkg-gencontrol -isp -p$(foo) -Pdebian/$(foo)
dpkg --build debian/$(foo) ..
Modified: trunk/testset/info_tags.foo++
===================================================================
--- trunk/testset/info_tags.foo++ 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/testset/info_tags.foo++ 2004-04-13 23:56:59 UTC (rev 151)
@@ -80,6 +80,11 @@
N: Refer to Policy Manual, section 12.5 for details.
N:
E: foo++-helper: wrong-debian-qa-address-set-as-maintainer Lintian Maintainer <debian-qa@lists.debian.org>
+W: foo++: readme-debian-contains-debmake-default-email-address
+N:
+N: The README.Debian file contains an email address () that was not
+N: updated to the maintainer's real address.
+N:
E: foo++: no-copyright-file
N:
N: Each binary package has to include a plain file
@@ -88,7 +93,7 @@
N: Refer to Policy Manual, section 12.5 for details.
N:
E: foo++: wrong-debian-qa-address-set-as-maintainer Lintian Maintainer <debian-qa@lists.debian.org>
-E: foo++: debian-changelog-file-uses-obsolete-national-charset at line 3
+E: foo++: debian-changelog-file-uses-obsolete-national-charset at line 11
N:
N: The Debian changelog file must be valid UTF-8, an encoding of the
N: Unicode character set.
@@ -99,3 +104,8 @@
N: $ iconv -f ISO-8859-1 -t UTF-8 changelog > changelog.new
N: $ mv changelog.new changelog
N:
+E: foo++: debian-changelog-file-contains-debmake-default-email-address
+N:
+N: The changelog file contains an email address () that was not updated
+N: to the maintainer's real address.
+N:
Modified: trunk/testset/tags.foo++
===================================================================
--- trunk/testset/tags.foo++ 2004-04-13 23:14:17 UTC (rev 150)
+++ trunk/testset/tags.foo++ 2004-04-13 23:56:59 UTC (rev 151)
@@ -11,6 +11,8 @@
E: foo++ source: uploader-address-malformed I am afraid of spam and think this helps <no_spam_please AT debian.org>
E: foo++-helper: usr-doc-symlink-without-dependency foo++
E: foo++-helper: wrong-debian-qa-address-set-as-maintainer Lintian Maintainer <debian-qa@lists.debian.org>
+W: foo++: readme-debian-contains-debmake-default-email-address
E: foo++: no-copyright-file
E: foo++: wrong-debian-qa-address-set-as-maintainer Lintian Maintainer <debian-qa@lists.debian.org>
-E: foo++: debian-changelog-file-uses-obsolete-national-charset at line 3
+E: foo++: debian-changelog-file-uses-obsolete-national-charset at line 11
+E: foo++: debian-changelog-file-contains-debmake-default-email-address
Reply to: