mirror of
https://github.com/kiviktnm/decman.git
synced 2026-09-19 12:08:28 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user