From a4bc2bc8c00bfc5b18661ecdd774ba87c84f4714 Mon Sep 17 00:00:00 2001 From: James Page <james.page@ubuntu.com> Date: Tue, 7 Jun 2016 22:48:59 +0200 Subject: [PATCH] dhpython/pydist.py: Ensure that != dependency versions are ignored --- debian/changelog | 4 ++++ dhpython/pydist.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d92a730..fe81fcd 100644 --- a/debian/changelog +++ b/debian/changelog @@ -21,6 +21,10 @@ dh-python (2.20160609) UNRELEASED; urgency=medium * Standards-Version is 3.9.8 now (no changes needed) * Changed Vcs-* URLs to https protocol + [ James Page ] + * dhpython/pydist.py: Ensure that != dependency versions are ignored + (LP: #1581065). + -- Piotr Ożarowski <piotr@debian.org> Thu, 18 Feb 2016 21:08:04 +0100 dh-python (2.20151103) unstable; urgency=medium diff --git a/dhpython/pydist.py b/dhpython/pydist.py index c4b6c49..d16cdff 100644 --- a/dhpython/pydist.py +++ b/dhpython/pydist.py @@ -150,7 +150,7 @@ def guess_dependency(impl, req, version=None, bdep=None): # Debian dependency return item['dependency'] if req_d['version'] and (item['standard'] or item['rules']) and\ - req_d['operator'] not in (None, '=='): + req_d['operator'] not in (None, '==', '!='): v = _translate(req_d['version'], item['rules'], item['standard']) return "%s (%s %s)" % (item['dependency'], req_d['operator'], v) else: -- GitLab