From 22b68afe3279d83caf77c4e0bae8f7484bd84f17 Mon Sep 17 00:00:00 2001 From: Steve Dower Date: Wed, 15 Apr 2026 19:43:07 +0100 Subject: [PATCH] Reduce unnecessary output in default 'py list --online'. --- src/manage/list_command.py | 3 +-- src/manage/urlutils.py | 9 +++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/manage/list_command.py b/src/manage/list_command.py index fd87d29..879acfc 100644 --- a/src/manage/list_command.py +++ b/src/manage/list_command.py @@ -331,8 +331,7 @@ def execute(cmd): ]: if source: downloader = IndexDownloader(cmd, source, Index) - if cmd.fallback_source_only: - downloader.quiet = True + downloader.quiet = True try: installs = _get_installs_from_index( downloader, diff --git a/src/manage/urlutils.py b/src/manage/urlutils.py index 47d78d4..cac0592 100644 --- a/src/manage/urlutils.py +++ b/src/manage/urlutils.py @@ -796,11 +796,16 @@ def __next__(self): verified = self.verify(url, data, parsed, show_settings=True) if verified is True: - LOGGER.info("!G!The signature for %s was successfully verified.!W!", s_url) + (LOGGER.verbose if self.quiet else LOGGER.info)( + "!G!The signature for %s was successfully verified.!W!", + s_url, + ) elif verified is False: LOGGER.warn("Signature verification failure ignored for %s", s_url) else: - LOGGER.info("No signature to verify for %s", s_url) + (LOGGER.verbose if self.quiet else LOGGER.info)( + "No signature to verify for %s", s_url + ) self._cache[url] = data