From dad46bd6401eb910464125693f7c4e6e289127a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org> Date: Mon, 8 Aug 2011 22:23:24 +0200 Subject: [PATCH] fix handling "distname[features]" in debpython.pydist.guess_dependency (closes: 636255) --- debian/changelog | 2 ++ debpython/pydist.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 25fac8e..977389a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,8 @@ python-defaults (2.7.2-5) UNRELEASED; urgency=low other packages, which do not use a helper/bytecompile them) - add --no-dbg-cleaning option (to disable removing files from debug packages) + - fix handling "distname[features]" in debpython.pydist.guess_dependency + (closes: 636255) * pyclean now accepts --package and private dir argument at the same time [ Scott Kitterman ] diff --git a/debpython/pydist.py b/debpython/pydist.py index 154bca0..5b9bc12 100644 --- a/debpython/pydist.py +++ b/debpython/pydist.py @@ -127,7 +127,8 @@ def guess_dependency(req, version=None): 'or your upstream author to fix requires.txt') exit(8) req_dict = req_dict.groupdict() - details = data.get(req_dict['name'].lower()) + name = req_dict['name'] # drop "[features]" + details = data.get(name.lower()) if details: for item in details: if version and version not in item.get('versions', version): -- GitLab