diff -Nru lintian-2.5.69/checks/python.pm lintian-2.5.70/checks/python.pm --- lintian-2.5.69/checks/python.pm 2018-01-16 00:41:30.000000000 +0000 +++ lintian-2.5.70/checks/python.pm 2018-01-16 06:44:46.000000000 +0000 @@ -36,6 +36,12 @@ '^python3-django-' => 'python3-django', '^python2?-django-' => 'python-django', ); + +my %REQUIRED_DEPENDS = ( + 'python2' => 'python-minimal:any | python:any', + 'python3' => 'python3-minimal:any | python3:any', +); + my %MISMATCHED_SUBSTVARS = ( '^python3-.+' => '${python:Depends}', '^python2?-.+' => '${python3:Depends}', @@ -103,12 +109,15 @@ $info->relation('provides'), $pkg); my @entries = $info->changelog ? $info->changelog->data : (); - if ( - any { m,^usr/lib/python[\d.]+/(?:site|dist)-packages, } - $info->sorted_index - and not $deps->implies('python:any | python-minimal:any') - ) { - tag 'python-package-missing-depends-on-python'; + # Check for missing dependencies + foreach my $file ($info->sorted_index) { + if ( $file->is_file + and $file + =~ m,usr/lib/(?python[23])[\d.]*/(?:site|dist)-packages, + and not $deps->implies($REQUIRED_DEPENDS{$+{version}})) { + tag 'python-package-missing-depends-on-python'; + last; + } } # Python 2 modules diff -Nru lintian-2.5.69/data/spelling/corrections lintian-2.5.70/data/spelling/corrections --- lintian-2.5.69/data/spelling/corrections 2018-01-16 00:41:30.000000000 +0000 +++ lintian-2.5.70/data/spelling/corrections 2018-01-16 06:44:46.000000000 +0000 @@ -575,6 +575,7 @@ bulit||built bulletted||bulleted bultin||builtin +bumpded||bumped cacluate||calculate cacluated||calculated cacluates||calculates diff -Nru lintian-2.5.69/debian/changelog lintian-2.5.70/debian/changelog --- lintian-2.5.69/debian/changelog 2018-01-16 00:41:30.000000000 +0000 +++ lintian-2.5.70/debian/changelog 2018-01-16 06:44:46.000000000 +0000 @@ -1,3 +1,15 @@ +lintian (2.5.70) unstable; urgency=medium + + * checks/python.pm: + + [CL] Fix false positives in python-package-missing-depends-on-python + for Python 3 packages; we were not checking python3:any or + python3-minimal:any. + + * data/spelling/corrections: + + [PW] Add bumpded -> bumped correction. + + -- Chris Lamb Tue, 16 Jan 2018 06:44:46 +0000 + lintian (2.5.69) unstable; urgency=medium * Summary of tag changes: