From 7f0767fb5ac75dcb308077ca027a30b772cbc1e7 Mon Sep 17 00:00:00 2001 From: Antoine Nguyen Date: Thu, 22 Aug 2024 16:10:38 +0200 Subject: [PATCH] Prevent installation of deprecated extensions. --- modoboa/core/commands/deploy.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modoboa/core/commands/deploy.py b/modoboa/core/commands/deploy.py index cb6311e54..0a3efc0c5 100644 --- a/modoboa/core/commands/deploy.py +++ b/modoboa/core/commands/deploy.py @@ -3,9 +3,7 @@ import getpass import os from os.path import isfile -import secrets import shutil -import string import subprocess import sys @@ -166,7 +164,11 @@ class DeployCommand(Command): """ url = "http://api.modoboa.org/" official_exts = ModoAPIClient(url).list_extensions() - return [extension["name"] for extension in official_exts] + return [ + extension["name"] + for extension in official_exts + if not extension["deprecated"] + ] def find_extra_settings(self, extensions): """Install one or more extensions.