Simple fixes

This commit is contained in:
David Groniewsky
2025-10-08 19:13:08 +02:00
parent 7320c88940
commit d765eea3f4
3 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ class MyModule(Module):
return ["org.mozilla.firefox"] return ["org.mozilla.firefox"]
def flatpak_user_packages(self) -> list[str]: def flatpak_user_packages(self) -> list[str]:
return ["org.github.kolunmi.Bazaar"] return ["io.github.kolunmi.Bazaar"]
def systemd_units(self) -> list[str]: def systemd_units(self) -> list[str]:
return ["reflector.timer"] return ["reflector.timer"]
+5 -1
View File
@@ -216,7 +216,7 @@ class Core:
l.print_error( 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." "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() sys.exit(1)
self.store = store self.store = store
self.source = _resolve_source() self.source = _resolve_source()
@@ -291,6 +291,8 @@ class Core:
) )
l.print_list("Removing pacman packages:", to_remove) l.print_list("Removing pacman packages:", to_remove)
if conf.enable_flatpak:
l.print_list("Removing flatpak packages:", to_remove_flatpak) l.print_list("Removing flatpak packages:", to_remove_flatpak)
l.print_list("Removing user flatpak packages:", to_remove_user_flatpak) l.print_list("Removing user flatpak packages:", to_remove_user_flatpak)
@@ -344,6 +346,8 @@ class Core:
) )
l.print_list("Installing pacman packages:", to_install_pacman) l.print_list("Installing pacman packages:", to_install_pacman)
if conf.enable_flatpak:
l.print_list("Installing flatpak packages:", to_install_flatpak) l.print_list("Installing flatpak packages:", to_install_flatpak)
l.print_list("Installing user flatpak packages:", to_install_user_flatpak) l.print_list("Installing user flatpak packages:", to_install_user_flatpak)
+3
View File
@@ -998,6 +998,9 @@ class Flatpak:
if "Application ID" in packages: if "Application ID" in packages:
packages.remove("Application ID") packages.remove("Application ID")
if packages == [""]:
return []
return packages return packages
except subprocess.CalledProcessError as error: except subprocess.CalledProcessError as error:
raise err.UserFacingError( raise err.UserFacingError(