[lintian] 01/01: c/files.pm: Reduce the number of calls to L::Data
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository lintian.
commit 984bc7d5d897037f17ba9704b5aada8115760d4a
Author: Niels Thykier <niels@thykier.net>
Date: Wed Mar 12 21:43:01 2014 +0100
c/files.pm: Reduce the number of calls to L::Data
Signed-off-by: Niels Thykier <niels@thykier.net>
---
checks/files.pm | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/checks/files.pm b/checks/files.pm
index 99bbdfd..ffab002 100644
--- a/checks/files.pm
+++ b/checks/files.pm
@@ -1292,11 +1292,9 @@ sub run {
# ---------------- fonts
elsif ($fname =~ m,/([\w-]+\.(?:[to]tf|pfb))$,i) {
my $font = lc $1;
- 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');
+ if (my $font_owner = $FONT_PACKAGES->value($font)) {
+ tag 'duplicate-font-file', "$fname also in", $font_owner
+ if ($pkg ne $font_owner and $type ne 'udeb');
} elsif ($pkg !~ m/^(?:[ot]tf|t1|x?fonts)-/) {
tag 'font-in-non-font-package', $file;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git
Reply to: