Fix for pipenv lock behaving like keep_outdated flag is always True.

This commit is contained in:
Matt Davis
2022-11-09 22:23:19 -05:00
parent 8b22e123a4
commit 898eca8bde
+7
View File
@@ -1157,6 +1157,13 @@ def do_lock(
err=True,
)
# Prune old lockfile category as new one will be created.
if not keep_outdated:
try:
del lockfile[category]
except KeyError:
pass
from pipenv.utils.resolver import venv_resolve_deps
# Mutates the lockfile