Allow sections that are not already written to the lockfile.

This commit is contained in:
Matt Davis
2022-09-11 04:26:56 -04:00
parent 9d24bf0020
commit 467045f1bc
+3 -1
View File
@@ -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()