[SCM] Debian package checker branch, master, updated. 2.2.6-24-g1f32365
The following commit has been merged in the master branch:
commit 4979665f6d9710c9fbe3a4dfdafe68b470a57218
Author: Raphael Geissert <atomo64@gmail.com>
Date: Sat Feb 21 17:11:04 2009 -0600
Only load the fonts data when a package ships a font
diff --git a/checks/files b/checks/files
index 096515a..e0ded37 100644
--- a/checks/files
+++ b/checks/files
@@ -25,7 +25,7 @@ use Tags;
use Util;
use Lintian::Data;
-our $FONT_PACKAGES = Lintian::Data->new('files/fonts', '\s+');
+our $FONT_PACKAGES;
# A list of known packaged Javascript libraries
# and the packages providing them
@@ -747,6 +747,8 @@ foreach my $file (sort keys %{$info->index}) {
# ---------------- fonts
if ($file =~ m,/([\w-]+\.(?:[to]tf|pfb|pcf))$,i) {
my $font = lc $1;
+ $FONT_PACKAGES = Lintian::Data->new('files/fonts', '\s+')
+ unless defined($FONT_PACKAGES);
if ($FONT_PACKAGES->known($font)) {
tag 'duplicate-font-file', "$file also in", $FONT_PACKAGES->value($font)
if ($pkg ne $FONT_PACKAGES->value($font) and $type ne 'udeb');
--
Debian package checker
Reply to: