From b0ea74c9a19c6df1222261f43c07a72138813632 Mon Sep 17 00:00:00 2001 From: Obijuan Date: Tue, 20 Jul 2021 16:53:58 +0200 Subject: [PATCH] Obsolete packages not intalled --- apio/commands/install.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/apio/commands/install.py b/apio/commands/install.py index f07507e3..7f8986d8 100644 --- a/apio/commands/install.py +++ b/apio/commands/install.py @@ -61,9 +61,19 @@ def cli(ctx, packages, all, list, force, platform): # -- Install all the available packages elif all: # pragma: no cover - packages = Resources(platform).packages + + # -- Get all the resources + resources = Resources(platform) + + # -- Get all the packages + packages = resources.packages + + # -- Install all the packages... excepto the obolete one for package in packages: - Installer(package, platform, force).install() + + # -- do NOT install the obsolete packages + if package not in resources.obsolete_pkgs: + Installer(package, platform, force).install() # -- List all the packages (installed or not) elif list: