Bug#748167: Lintian should ignore .jpg/.jpeg in addition to .png in info directories
Package: lintian
Version: 2.5.22.1
Severity: normal
Control: tag -1 patch
Lintian wrongly complains about images being info documents:
lilypond-doc: info-document-not-compressed usr/share/info/lilypond/pictures/darius-blasband.jpg
lilypond-doc: info-document-has-wrong-extension usr/share/info/lilypond/pictures/darius-blasband.jpg
the following trivial patch fixes this problem:
diff --git a/checks/infofiles.pm b/checks/infofiles.pm
index 0076375..e3c36b0 100644
--- a/checks/infofiles.pm
+++ b/checks/infofiles.pm
@@ -64,7 +64,7 @@ sub run {
}
}
}
- } elsif ($ext eq 'png') {
+ } elsif ($ext =~ m/^(?:png|jpe?g)$) {
next;
} else {
push(@fname_pieces, $ext);
--
Don Armstrong http://www.donarmstrong.com
Certainly the game is rigged. Don't let that stop you. If you don't
bet, you can't win.
-- Robert Heinlein _Time Enough For Love_ p240
Reply to: