Axel Beckert pushed to branch master at lintian / lintian
Commits:
6940c6a8 by Axel Beckert at 2024-02-05T01:28:37+01:00
Add build-depedency on debhleper ≥ 13.11.8~ if the test suite is run at
build-time
- - - - -
c9b6c94c by Axel Beckert at 2024-02-05T01:28:52+01:00
L::C::B::Corrupted::check_elf_issues(): Return immediately if file is no ELF
file
Thanks: Corvin Köhne via MR !486
I implemented it differently than Corvin to avoid code duplication and
to be more future proof in case non-ELF issues will be checked in the
future with visit_*_files().
- - - - -
2 changed files:
- debian/control
- lib/Lintian/Check/Binaries/Corrupted.pm
Changes:
=====================================
debian/control
=====================================
@@ -9,6 +9,7 @@ Build-Depends:
aspell <!nocheck>,
aspell-en <!nocheck>,
cdbs <!nocheck>,
+ debhelper (>= 13.11.8~) <!nocheck>,
debhelper-compat (= 13),
default-jdk-headless | default-jdk <!nocheck>,
dh-elpa | bash (<< 4.4) <!nocheck>,
=====================================
lib/Lintian/Check/Binaries/Corrupted.pm
=====================================
@@ -53,6 +53,8 @@ sub visit_installed_files {
sub check_elf_issues {
my ($self, $item) = @_;
+ return unless $item->is_elf;
+
for (uniq @{$item->elf->{ERRORS} // []}) {
$self->pointed_hint('elf-error',$item->pointer, $_)
unless (
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/compare/b69e774798c3c63992b869739421ac3bb2c2948f...c9b6c94c91e3c142c172dce9d51f82b08dfad69d
--
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/compare/b69e774798c3c63992b869739421ac3bb2c2948f...c9b6c94c91e3c142c172dce9d51f82b08dfad69d
You're receiving this email because of your account on salsa.debian.org.