minor changes on outdated package helper

This commit is contained in:
romainx
2020-02-13 10:20:42 +01:00
parent b6ca292975
commit bf91753dc6
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ build/%: ## build the latest image for a stack
build-all: $(foreach I,$(ALL_IMAGES),arch_patch/$(I) build/$(I) ) ## build all stacks build-all: $(foreach I,$(ALL_IMAGES),arch_patch/$(I) build/$(I) ) ## build all stacks
build-test-all: $(foreach I,$(ALL_IMAGES),arch_patch/$(I) build/$(I) test/$(I) ) ## build and test all stacks build-test-all: $(foreach I,$(ALL_IMAGES),arch_patch/$(I) build/$(I) test/$(I) ) ## build and test all stacks
check_outdated/%: ## Check the outdated conda packages in a stack and produce a report (experimental) check-outdated/%: ## check the outdated conda packages in a stack and produce a report (experimental)
@TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test/test_outdated.py @TEST_IMAGE="$(OWNER)/$(notdir $@)" pytest test/test_outdated.py
dev/%: ARGS?= dev/%: ARGS?=

View File

@@ -73,7 +73,7 @@ def print_result(installed, result):
nb_updatable = len(result) nb_updatable = len(result)
updatable_ratio = nb_updatable / nb_packages updatable_ratio = nb_updatable / nb_packages
LOGGER.info( LOGGER.info(
f"{nb_updatable} packages can be updated over {nb_packages} -> {updatable_ratio:.0%}" f"{nb_updatable}/{nb_packages} ({updatable_ratio:.0%}) packages could be updated"
) )
LOGGER.info(f"\n{tabulate(result, headers='keys')}\n") LOGGER.info(f"\n{tabulate(result, headers='keys')}\n")