Bug#883053: dependency-on-python-version-marked-for-end-of-life doesn't match python:any dependency
Hi Matthias,
> As seen with the dput-ng binary, the
> dependency-on-python-version-marked-for-end-of-life doesn't match the python:any
> dependency.
As I understand the code, the following should work:
--- a/checks/python.pm
+++ b/checks/python.pm
@@ -83,7 +83,7 @@ sub _run_binary {
for my $dep (@PYTHON2) {
tag 'dependency-on-python-version-marked-for-end-of-life',
"($field: $dep)"
- if $info->relation($field)->implies($dep);
+ if $info->relation($field)->restriction_less->implies($dep);
}
}
}
However, it still does not match. (NB. there is no relation_noarch for
Binary.pm, which might be a symptom of the root cause..)
My testcase is:
--- a/t/tests/python-python2-apps/debian/debian/control.in
+++ b/t/tests/python-python2-apps/debian/debian/control.in
@@ -74,3 +74,14 @@ Description: Test package (Python 3)
be an empty package.
.
Python 3 module with Python 3.x in Depends.
+
+Package: pkg-depends-any
+Architecture: all
+Depends: $\{misc:Depends\}, python:any
+Description: Test package with Python 2.x with :any suffix in Depends
+ This is a test package designed to exercise some feature or tag of
+ Lintian. It is part of the Lintian test suite and may do very odd
+ things. It should not be installed like a regular package. It may
+ be an empty package.
+ .
+ Description: Test package with Python 2.x with :any suffix in Depends.
diff --git a/t/tests/python-python2-apps/tags b/t/tests/python-python2-apps/tags
index 81ed33926..cc5c6e4d7 100644
--- a/t/tests/python-python2-apps/tags
+++ b/t/tests/python-python2-apps/tags
@@ -3,3 +3,4 @@ P: pkg-pre-depends: dependency-on-python-version-marked-for-end-of-life (Pre-Dep
P: pkg-recommends: dependency-on-python-version-marked-for-end-of-life (Recommends: python-dev)
P: pkg-suggests: dependency-on-python-version-marked-for-end-of-life (Suggests: python)
P: pkg-suggests: dependency-on-python-version-marked-for-end-of-life (Suggests: python2.7)
+P: pkg-depends-any: dependency-on-python-version-marked-for-end-of-life (Depends: python:any)
Any pointers, Niels et al.? :)
Best wishes,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@debian.org / chris-lamb.co.uk
`-
Reply to: