mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Fix for pipenv lock behaving like keep_outdated flag is always True.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user