From 515a27cb7d2add3f564bb5f8181f697563964c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Groniewsky?= Date: Tue, 30 Sep 2025 22:45:54 +0200 Subject: [PATCH] Added the check for missing flatpak installation while the flatpaks are enabled. An error will be printed and decman will exit. --- src/decman/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/decman/app.py b/src/decman/app.py index 787b9e0..3f0ebc6 100644 --- a/src/decman/app.py +++ b/src/decman/app.py @@ -5,6 +5,7 @@ Module containing the CLI Application. import argparse import os +import shutil import sys import traceback @@ -212,6 +213,10 @@ class Core: self.force_build, ) = opts + if conf.enable_flatpak and not shutil.which("flatpak"): + l.print_error("Flatpaks have been enabled in the source file, but the flatpak command could not be found. Either disable flatpaks or make sure that flatpak is installed and can be accessed by decman. Exiting.") + exit() + self.store = store self.source = _resolve_source() self.pacman = l.Pacman()