From 1a163ce9f0b53498291232ca2d61637bce976f8d Mon Sep 17 00:00:00 2001 From: cronekorkn Date: Fri, 31 May 2024 15:14:16 +0200 Subject: [PATCH] dep order --- bundles/locale/items.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bundles/locale/items.py b/bundles/locale/items.py index 16d6cd8..bbc990d 100644 --- a/bundles/locale/items.py +++ b/bundles/locale/items.py @@ -20,18 +20,19 @@ files = { } actions = { + 'systemd-locale': { + 'command': f'localectl set-locale LANG="{default_locale}"', + 'unless': f'localectl | grep -Fi "system locale" | grep -Fi "{default_locale}"', + 'triggers': { + 'action:locale-gen', + }, + }, 'locale-gen': { 'command': 'locale-gen', 'triggered': True, 'needs': { 'pkg_apt:locales', - }, - }, - 'systemd-locale': { - 'command': f'localectl set-locale LANG="{default_locale}"', - 'unless': f'localectl | grep -Fi "system locale" | grep -Fi "{default_locale}"', - 'preceded_by': { - 'action:locale-gen', + 'action:systemd-locale', }, }, }