From db6a3bbc30cc03b79af99dbc805206370636d668 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 24 Jan 2017 15:24:14 -0500 Subject: [PATCH] fix bug --- pipenv/cli.py | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index aa1b95a9..afd11dcd 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -154,16 +154,10 @@ def do_download_dependencies(dev=False, only=False, bare=False): # Load the Pipfile. p = pipfile.load(project.pipfile_location) - # Load the lockfile if it exists, else use the Pipfile as a seed. - if not project.lockfile_exists: - if not bare: - click.echo(crayons.yellow('Installing dependencies from Pipfile...')) - lockfile = json.loads(p.lock()) - else: - if not bare: - click.echo(crayons.yellow('Installing dependencies from Pipfile.lock...')) - with open(project.lockfile_location, 'r') as f: - lockfile = json.load(f) + # Load the Pipfile. + if not bare: + click.echo(crayons.yellow('Installing dependencies from Pipfile...')) + lockfile = json.loads(p.lock()) # Install default dependencies, always. deps = lockfile['default'] if not only else {}