diff --git a/src/poetry/installation/executor.py b/src/poetry/installation/executor.py index fadd1bc2e92..92d8f5d2f84 100644 --- a/src/poetry/installation/executor.py +++ b/src/poetry/installation/executor.py @@ -311,8 +311,6 @@ def _do_execute_operation(self, operation: Operation) -> int: return 0 if not self._enabled or self._dry_run: - self._io.write_line(f" • {operation_message}") - return 0 result: int = getattr(self, f"_execute_{method}")(operation) @@ -700,7 +698,9 @@ def _download_archive(self, operation: Install | Update, link: Link) -> Path: return archive def _should_write_operation(self, operation: Operation) -> bool: - return not operation.skipped or self._dry_run or self._verbose + return ( + not operation.skipped or self._dry_run or self._verbose or not self._enabled + ) def _save_url_reference(self, operation: Operation) -> None: """ diff --git a/tests/console/commands/self/test_remove_plugins.py b/tests/console/commands/self/test_remove_plugins.py index 644e5748510..5821df82356 100644 --- a/tests/console/commands/self/test_remove_plugins.py +++ b/tests/console/commands/self/test_remove_plugins.py @@ -95,7 +95,6 @@ def test_remove_installed_package_dry_run(tester: CommandTester): Package operations: 0 installs, 0 updates, 1 removal, 1 skipped - • Removing poetry-plugin (1.2.3) • Removing poetry-plugin (1.2.3) • Installing poetry ({__version__}): Skipped for the following reason: Already \ installed