[SCM] Debian package checker branch, master, updated. 2.5.13-47-g26430d1
The following commit has been merged in the master branch:
commit 26430d122df750c8f7a888357d28fb1345e8b120
Author: Niels Thykier <niels@thykier.net>
Date: Sat Jun 29 13:57:38 2013 +0200
c/binaries.pm: Ignore "teH" in ELF binaries
Signed-off-by: Niels Thykier <niels@thykier.net>
diff --git a/checks/binaries.pm b/checks/binaries.pm
index a94cdfd..b59cdba 100644
--- a/checks/binaries.pm
+++ b/checks/binaries.pm
@@ -281,8 +281,12 @@ foreach my $file ($info->sorted_index) {
}
my $strings = slurp_entire_file ($info->strings ($file));
+ my $exceptions = {
+ %{ $group->info->spelling_exceptions },
+ 'teH' => 1, # From #711207
+ };
check_spelling('spelling-error-in-binary', $strings, $file,
- $group->info->spelling_exceptions);
+ $exceptions);
# stripped?
if ($fileinfo =~ m,not stripped\s*$,o) {
diff --git a/debian/changelog b/debian/changelog
index e7b7ba9..fcacc8e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,9 @@ lintian (2.5.14) UNRELEASED; urgency=low
+ [NT] Also check for the presence of "mcount" to detect
whether a binary was compiled with profiling.
(Closes: #712124)
+ + [NT] Ignore "teH" when checking for spelling mistakes in
+ ELF binaries. Thanks to Ryan Kavanagh for the report.
+ (Closes: #711207)
* checks/cruft.pm:
+ [NT] Revise a few tests that relied on file(1) on text files.
+ [NT] Apply patches from Bastien Roucariès to fix some false
diff --git a/lib/Lintian/Check.pm b/lib/Lintian/Check.pm
index 928fa67..083b68c 100644
--- a/lib/Lintian/Check.pm
+++ b/lib/Lintian/Check.pm
@@ -249,6 +249,8 @@ sub check_spelling {
for my $word (split(/\s+/, $text)) {
$word =~ s/[.,;:?!]+$//;
next if ($word =~ /^[A-Z]{1,5}\z/);
+ # Some exceptions are based on case (e.g. "teH").
+ next if exists($exceptions->{$word});
my $lcword = lc $word;
if ($corrections->known($lcword) &&
!exists ($exceptions->{$lcword})) {
--
Debian package checker
Reply to:
- Prev by Date:
[SCM] Debian package checker branch, master, updated. 2.5.13-47-g26430d1
- Next by Date:
Processed: limit source to lintian, tagging 714427, tagging 711207, tagging 710466
- Previous by thread:
[SCM] Debian package checker branch, master, updated. 2.5.13-47-g26430d1
- Next by thread:
Processed: limit source to lintian, tagging 714427, tagging 711207, tagging 710466
- Index(es):