mirror of
https://github.com/kiviktnm/decman.git
synced 2026-11-04 00:30:16 +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:
1 parent
dbeed0b7d8
commit
515a27cb7d
1 file changed
+5
@@ -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