From e2ae44714c0cc0e460d93305d8b9712776c36bf4 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Fri, 6 Sep 2019 13:20:34 +0200 Subject: [PATCH] Set back for stack pref --- wo/cli/plugins/stack_pref.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/wo/cli/plugins/stack_pref.py b/wo/cli/plugins/stack_pref.py index 4a41253..2f9fed2 100644 --- a/wo/cli/plugins/stack_pref.py +++ b/wo/cli/plugins/stack_pref.py @@ -28,10 +28,7 @@ from wo.core.variables import WOVariables def pre_pref(self, apt_packages): """Pre settings to do before installation packages""" - if (not(["mariadb-server"] in apt_packages) and - (not ["mariadb-client"] in apt_packages)): - pass - else: + if set(WOVariables.wo_mysql).issubset(set(apt_packages)): # add mariadb repository excepted on raspbian and ubuntu 19.04 if (not WOVariables.wo_distro == 'raspbian'): Log.info(self, "Adding repository for MySQL, please wait...")