Merge pull request #1557 from intrinseca/master

Fix verbose display
This commit is contained in:
2018-03-06 07:58:15 -05:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1365,7 +1365,7 @@ def do_init(
# Write out the lockfile if it doesn't exist.
if not project.lockfile_exists and not skip_lock:
click.echo(crayons.normal(u'Pipfile.lock not found, creating…', bold=True), err=True)
do_lock(system=system, pre=pre, keep_outdated=keep_outdated)
do_lock(system=system, pre=pre, keep_outdated=keep_outdated, verbose=verbose)
do_install_dependencies(dev=dev, requirements=requirements, allow_global=allow_global,
skip_lock=skip_lock, verbose=verbose, concurrent=concurrent,
+2
View File
@@ -358,6 +358,8 @@ def venv_resolve_deps(deps, which, project, pre=False, verbose=False, clear=Fals
try:
assert c.return_code == 0
except AssertionError:
if verbose:
click.echo(c.out, err=True)
click.echo(c.err[int(len(c.err) / 2) - 1:], err=True)
sys.exit(c.return_code)