From ce02c1f3549544486a82d71c4510a19fcbbf1f21 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 21 Nov 2021 18:31:03 +0000 Subject: fixed issues with failing to list content length --- src/verbs/install.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/verbs') diff --git a/src/verbs/install.py b/src/verbs/install.py index b5555a7..34974a0 100644 --- a/src/verbs/install.py +++ b/src/verbs/install.py @@ -106,6 +106,8 @@ def retrieve_package(sources, package_info, package_name, config, for source in get_best_source(sources_list=sources_list): url = sources[source] + if verbose: + print(colors.LIGHT_BLACK + f"using source {source} at {url}") package_url = util.add_path(url, package_name + ".xipkg") package_dir = util.add_path(cache_dir, source) @@ -120,6 +122,7 @@ def retrieve_package(sources, package_info, package_name, config, if verify_signature(package_path, package_info, cache_dir=cache_dir, keychain_dir=keychain_dir, verbose=verbose): + print(colors.RESET) return package_path elif verbose: print(colors.RED @@ -130,9 +133,9 @@ def retrieve_package(sources, package_info, package_name, config, + f"Checksum verification failed for {package_name} in {source}" + colors.RESET) else: + print(colors.RESET) return package_path - if verbose: - print(colors.RED + f"No valid packages found" + colors.RESET) + print(colors.RESET + colors.RED + f"No valid packages found for {package_name}" + colors.RESET) return "" def parse_package_info(packageinfo): -- cgit v1.2.1