Added the check for missing flatpak installation while the flatpaks are enabled. An error will be printed and decman will exit.

This commit is contained in:
Dávid Groniewsky
2025-09-30 22:45:54 +02:00
parent dbeed0b7d8
commit 515a27cb7d
+5
View File
@@ -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()