mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Merge pull request #3306 from modoboa/fix/prevent_deprecated_plugin_install
Prevent installation of deprecated extensions.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user