lintian: r1001 - in trunk: checks debian testset testset/binary/debian
Author: he
Date: 2007-11-30 11:10:06 +0100 (Fri, 30 Nov 2007)
New Revision: 1001
Modified:
trunk/checks/copyright-file
trunk/checks/copyright-file.desc
trunk/debian/changelog
trunk/testset/binary/debian/copyright
trunk/testset/tags.binary
Log:
* checks/copyright-file:
+ [HE] Check that encoding of copyright file is UTF-8. Patch by
gregor herrmann <gregor+debian@comodo.priv.at>. (Closes: #451689)
Modified: trunk/checks/copyright-file
===================================================================
--- trunk/checks/copyright-file 2007-11-30 09:28:17 UTC (rev 1000)
+++ trunk/checks/copyright-file 2007-11-30 10:10:06 UTC (rev 1001)
@@ -131,6 +131,12 @@
tag "no-copyright-file", "";
}
+# check that copyright is UTF-8 encoded
+my $line = file_is_encoded_in_non_utf8("copyright", $type, $pkg);
+if ($line) {
+ tag "debian-copyright-file-uses-obsolete-national-encoding", "at line $line"
+}
+
# check contents of copyright file
open(IN, '<', "copyright") or fail("cannot open copyright file copyright: $!");
# gulp whole file
Modified: trunk/checks/copyright-file.desc
===================================================================
--- trunk/checks/copyright-file.desc 2007-11-30 09:28:17 UTC (rev 1000)
+++ trunk/checks/copyright-file.desc 2007-11-30 10:10:06 UTC (rev 1001)
@@ -147,3 +147,14 @@
remove the "(" and ")".
.
o/~ join us now and carefully edit debian/copyright files! o/~
+
+Tag: debian-copyright-file-uses-obsolete-national-encoding
+Type: warning
+Info: The Debian copyright file should be valid UTF-8, an encoding of
+ the Unicode character set.
+ .
+ There are many ways to convert a copyright file from an obsoleted encoding
+ like ISO-8859-1; you may for example use "iconv" like:
+ .
+ $ iconv -f ISO-8859-1 -t UTF-8 copyright > copyright.new
+ $ mv copyright.new copyright
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2007-11-30 09:28:17 UTC (rev 1000)
+++ trunk/debian/changelog 2007-11-30 10:10:06 UTC (rev 1001)
@@ -11,6 +11,9 @@
+ [RA] Add Dm-Upload-Allowed as a recognized control field.
* checks/control-files:
+ [RA] Add symbols as a known control file for debs and udebs.
+ * checks/copyright-file:
+ + [HE] Check that encoding of copyright file is UTF-8. Patch by
+ gregor herrmann <gregor+debian@comodo.priv.at>. (Closes: #451689)
* checks/deb-format:
+ [HE] Remove, not needed any more. (Closes: #447257)
* checks/deconf:
Modified: trunk/testset/binary/debian/copyright
===================================================================
--- trunk/testset/binary/debian/copyright 2007-11-30 09:28:17 UTC (rev 1000)
+++ trunk/testset/binary/debian/copyright 2007-11-30 10:10:06 UTC (rev 1001)
@@ -6,3 +6,5 @@
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
+
+Test for deprecated n�on��oding.
Modified: trunk/testset/tags.binary
===================================================================
--- trunk/testset/tags.binary 2007-11-30 09:28:17 UTC (rev 1000)
+++ trunk/testset/tags.binary 2007-11-30 10:10:06 UTC (rev 1001)
@@ -57,6 +57,7 @@
W: binary: binary-without-manpage usr/bin/iminusrbin
W: binary: binary-without-manpage usr/bin/static-hello
W: binary: changelog-file-not-compressed changelog
+W: binary: debian-copyright-file-uses-obsolete-national-encoding at line 10
W: binary: debian-news-entry-has-strange-distribution UNRELEASED
W: binary: desktop-command-not-in-package /usr/share/applications/goodbye.desktop goodbye
W: binary: desktop-entry-contains-unknown-key /usr/share/applications/goodbye.desktop:5 SpecialTag
Reply to: