Skip to content

Commit

Permalink
Executor: Remove duplicate entry on dry-run
Browse files Browse the repository at this point in the history
  • Loading branch information
ahlaw committed Oct 15, 2020
1 parent 2d00a1d commit 7022dd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion poetry/installation/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def _do_execute_operation(self, operation):

return 0

if not self._enabled or self._dry_run:
if not self._enabled:
self._io.write_line(
" <fg=blue;options=bold>•</> {message}".format(
message=operation_message,
Expand All @@ -270,6 +270,9 @@ def _do_execute_operation(self, operation):

return 0

if self._dry_run:
return 0

result = getattr(self, "_execute_{}".format(method))(operation)

if result != 0:
Expand Down

0 comments on commit 7022dd0

Please sign in to comment.