Skip to content
Snippets Groups Projects
Commit dad46bd6 authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

fix handling "distname[features]" in debpython.pydist.guess_dependency

(closes: 636255)
parent 540f4fb1
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ python-defaults (2.7.2-5) UNRELEASED; urgency=low ...@@ -8,6 +8,8 @@ python-defaults (2.7.2-5) UNRELEASED; urgency=low
other packages, which do not use a helper/bytecompile them) other packages, which do not use a helper/bytecompile them)
- add --no-dbg-cleaning option (to disable removing files from debug - add --no-dbg-cleaning option (to disable removing files from debug
packages) packages)
- fix handling "distname[features]" in debpython.pydist.guess_dependency
(closes: 636255)
* pyclean now accepts --package and private dir argument at the same time * pyclean now accepts --package and private dir argument at the same time
[ Scott Kitterman ] [ Scott Kitterman ]
......
...@@ -127,7 +127,8 @@ def guess_dependency(req, version=None): ...@@ -127,7 +127,8 @@ def guess_dependency(req, version=None):
'or your upstream author to fix requires.txt') 'or your upstream author to fix requires.txt')
exit(8) exit(8)
req_dict = req_dict.groupdict() 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: if details:
for item in details: for item in details:
if version and version not in item.get('versions', version): if version and version not in item.get('versions', version):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment