From 259c7ac4a7f52c3c6ce597ca0106b2ebd8ce8f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Mon, 10 Jun 2024 17:36:46 +0200 Subject: [PATCH] resources.py apt: Fix when multiple extras are passed A wrong indentation leads to code executed at every for loop iteration. If multiple apt.extras resources, this fails at the first iteration. --- src/utils/resources.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/resources.py b/src/utils/resources.py index e2400e91d..557cc42cf 100644 --- a/src/utils/resources.py +++ b/src/utils/resources.py @@ -1176,10 +1176,10 @@ class AptDependenciesAppResource(AppResource): raw_msg=True, ) - # Drop 'extras' entries associated to no packages - self.extras = { - key: values for key, values in self.extras.items() if values["packages"] - } + # Drop 'extras' entries associated to no packages + self.extras = { + key: values for key, values in self.extras.items() if values["packages"] + } def provision_or_update(self, context: Dict = {}): script = " ".join(["ynh_install_app_dependencies", *self.packages])