Skip to content

Commit

Permalink
Re-add check for vcs pkgs presence in pipfile
Browse files Browse the repository at this point in the history
- This was removed in a refactor for no discernable reason
- The logic is still present in dev-packages
- Fixes #1130

Signed-off-by: Dan Ryan <[email protected]>
  • Loading branch information
techalchemy committed Apr 24, 2018
1 parent a876f2d commit b0aabc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pipenv/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,6 +1131,11 @@ def do_lock(
pip_freeze = delegator.run('{0} freeze'.format(escape_grouped_arguments(which_pip(allow_global=system)))).out
for dep in vcs_deps:
for line in pip_freeze.strip().split('\n'):
# if the line doesn't match a vcs dependency in the Pipfile,
# ignore it
if not any(dep in line for dep in vcs_deps):
continue

try:
installed = convert_deps_from_pip(line)
name = list(installed.keys())[0]
Expand Down

0 comments on commit b0aabc6

Please sign in to comment.