Skip to content

Commit

Permalink
Obsolete packages not intalled
Browse files Browse the repository at this point in the history
  • Loading branch information
Obijuan committed Jul 20, 2021
1 parent 44ee3d6 commit b0ea74c
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apio/commands/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b0ea74c

Please sign in to comment.