Louis-Philippe Véronneau pushed to branch master at lintian / lintian
Commits:
6926e7c4 by Timo Paulssen at 2024-10-08T21:50:34+00:00
Don't re-check if python is in dependencies for every file
- - - - -
1 changed file:
- lib/Lintian/Check/Languages/Python/StdlibDeprecation.pm
Changes:
=====================================
lib/Lintian/Check/Languages/Python/StdlibDeprecation.pm
=====================================
@@ -62,12 +62,6 @@ my %DEPRECATED_STDLIBS = (
sub visit_patched_files {
my ( $self, $item ) = @_;
- my $build_all = $self->processable->relation('Build-Depends-All');
-
- # Skip if the package doesn't depend on python
- return
- unless $build_all->satisfies($PYTHON3_DEPEND);
-
# Skip if it's not a python file
return
unless $item->name =~ /\.py$/;
@@ -76,6 +70,12 @@ sub visit_patched_files {
return
unless $item->is_open_ok;
+ my $build_all = $self->processable->relation('Build-Depends-All');
+
+ # Skip if the package doesn't depend on python
+ return
+ unless $build_all->satisfies($PYTHON3_DEPEND);
+
open( my $fd, '<', $item->unpacked_path )
or die encode_utf8( 'Cannot open ' . $item->unpacked_path );
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/6926e7c4873b0c33ad70ca7b0e706755d1171c2c
--
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/6926e7c4873b0c33ad70ca7b0e706755d1171c2c
You're receiving this email because of your account on salsa.debian.org.