Skip to content

Commit

Permalink
conda: hide download progressbars
Browse files Browse the repository at this point in the history
  • Loading branch information
astaric committed Oct 20, 2017
1 parent c05681f commit c0aeb7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Orange/canvas/application/addons.py
Original file line number Diff line number Diff line change
Expand Up @@ -886,11 +886,11 @@ def _find_conda(self):
return conda

def install(self, pkg):
cmd = ["conda", "install", "--yes", pkg.name]
cmd = ["conda", "install", "--yes", "--quiet", pkg.name]
run_command(cmd, raise_on_fail=False)

def upgrade(self, pkg):
cmd = ["conda", "upgrade", "--yes", pkg.name]
cmd = ["conda", "upgrade", "--yes", "--quiet", pkg.name]
run_command(cmd, raise_on_fail=False)

def uninstall(self, dist):
Expand Down Expand Up @@ -932,6 +932,7 @@ def run_command(command, raise_on_fail=True):
if process.returncode != 0:
log.info("Command %s failed with %s",
" ".join(command), process.returncode)
log.debug("Output:\n%s", "\n".join(output))
if raise_on_fail:
raise CommandFailed(command, process.returncode, output)

Expand Down

0 comments on commit c0aeb7b

Please sign in to comment.