From 44f98b9e62e7cda7afab2eab324800deac585ed4 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Fri, 3 Nov 2017 21:30:58 -0400 Subject: [PATCH] Fix syntax error which caused us to always update --- pipenv/cli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pipenv/cli.py b/pipenv/cli.py index 8d139558..e34caa2c 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -1622,9 +1622,10 @@ def cli( # Awesome sauce. click.echo(crayons.normal(xyzzy, bold=True)) - if not update and need_update_check(): - # Spun off in background thread, not unlike magic. - check_for_updates() + if not update: + if need_update_check(): + # Spun off in background thread, not unlike magic. + check_for_updates() else: # Update pip to latest version. ensure_latest_pip()