mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Allow sections that are not already written to the lockfile.
This commit is contained in:
+3
-1
@@ -668,7 +668,9 @@ def clean_results(results, resolver, project, category):
|
||||
lockfile = project.lockfile_content
|
||||
lockfile_section = get_lockfile_section_using_pipfile_category(category)
|
||||
reverse_deps = project.environment.reverse_dependencies()
|
||||
new_results = [r for r in results if r["name"] not in lockfile[lockfile_section]]
|
||||
new_results = [
|
||||
r for r in results if r["name"] not in lockfile.get(lockfile_section, {})
|
||||
]
|
||||
for result in results:
|
||||
name = result.get("name")
|
||||
entry_dict = result.copy()
|
||||
|
||||
Reference in New Issue
Block a user