fix(pipreqs): Duplicate entries in requirements.txt

This commit is contained in:
Vadim Kravcenko 2015-05-11 19:18:22 +02:00
parent 496b729309
commit 8a04169419

View File

@ -148,7 +148,7 @@ def init(args):
logging.debug("Getting packages information from Local/PyPI")
local = get_import_local(candidates)
# Get packages that were not found locally
difference = [x for x in candidates if x not in [z['name']
difference = [x for x in candidates if x.lower() not in [z['name'].lower()
for z in local]]
imports = local + get_imports_info(difference)