Skip to content

Commit

Permalink
Merge pull request #1282 from dongweiming/fix-verbose
Browse files Browse the repository at this point in the history
Fix uninstall package error in verbose mode
  • Loading branch information
kennethreitz committed Jan 11, 2018
2 parents 8f322b0 + a0e3f0e commit 08c01cb
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pipenv/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1995,14 +1995,13 @@ def uninstall(
crayons.green(package_name))
)

cmd = '"{0}" uninstall {1} -y'
command = '"{0}" uninstall {1} -y'.format(
which_pip(allow_global=system), package_name
)
if verbose:
click.echo('$ {0}').format(cmd)
click.echo('$ {0}'.format(command))

c = delegator.run(cmd.format(
which_pip(allow_global=system),
package_name
))
c = delegator.run(command)

click.echo(crayons.blue(c.out))

Expand Down

0 comments on commit 08c01cb

Please sign in to comment.