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

[SCM] Debian package checker branch, master, updated. 2.2.0-17-g5a3f5d3



The following commit has been merged in the master branch:
commit 855ec0d57ee4fcdea845dbaee98bcc1353f8fd7a
Author: Russ Allbery <rra@debian.org>
Date:   Fri Jan 30 21:57:39 2009 -0800

    Add pedantic check for fonts in non-font packages
    
    * checks/files{,.desc}:
      + [RA] Add pedantic check for fonts in non-font packages.  Thanks,
        Paul Wise.  (Closes: #513650)

diff --git a/checks/files b/checks/files
index fca3732..dcb1dc7 100644
--- a/checks/files
+++ b/checks/files
@@ -727,6 +727,11 @@ foreach my $file (sort keys %{$info->index}) {
 	    }
 	}
 
+	# ---------------- fonts in non-font packages
+	if ($file =~ m,\.(ttf|otf)\z, and $pkg !~ /^(ttf|otf)-/) {
+	    tag "font-in-non-font-package", "$file";
+	}
+
 	# ---------------- general: setuid/setgid files!
 	if ($operm & 04000 or $operm & 02000) {
 	    my ($setuid, $setgid) = ("","");
diff --git a/checks/files.desc b/checks/files.desc
index 22276b8..a728e17 100644
--- a/checks/files.desc
+++ b/checks/files.desc
@@ -931,3 +931,16 @@ Info: This package appears to contain development files only meaningful to
  Windows environments.  Such files are generally useless in Debian packages and
  were usually accidentally included by copying complete directories from the
  source tarball.
+
+Tag: font-in-non-font-package
+Severity: pedantic
+Certainty: possible
+Info: This package contains a *.ttf or *.otf file, file extensions
+ normally used for TrueType or OpenType fonts, but the package does not
+ appear to be a font package.  Font package names should begin with
+ <tt>ttf-</tt> or <tt>otf-</tt>.
+ .
+ Normally fonts should be packaged separate from their applications since
+ they are usually useful outside of the package that embeds them.  Fonts
+ are also frequently duplicated, and often the font is already available
+ as a separate Debian package.
diff --git a/debian/changelog b/debian/changelog
index 5775f1c..7cab403 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,16 @@
 lintian (2.2.1) UNRELEASED; urgency=low
 
+  * Summary of tag changes:
+    + Added
+      - font-in-non-font-package (pedantic)
+
   * checks/fields:
     + [RA] Allow but do not require a libmodule-build-perl dependency if
       the Build script is referenced in clean.  Thanks, Charles Plessy and
       gregor herrmann.  (Closes: #421549)
+  * checks/files{,.desc}:
+    + [RA] Add pedantic check for fonts in non-font packages.  Thanks,
+      Paul Wise.  (Closes: #513650)
   * checks/shared-libs.desc:
     + [RA] Add references to the UsingSymbolsFiles wiki page in the tags
       requesting generation of a symbols file.

-- 
Debian package checker


Reply to: