Exemple #1
0
    def uninstall(self, pkg: FlatpakApplication, root_password: str, watcher: ProcessWatcher) -> bool:
        uninstalled = ProcessHandler(watcher).handle(SystemProcess(subproc=flatpak.uninstall(pkg.ref)))

        if self.suggestions_cache:
            self.suggestions_cache.delete(pkg.id)

        return uninstalled
Exemple #2
0
    def uninstall(self, pkg: FlatpakApplication, root_password: str, watcher: ProcessWatcher, disk_loader: DiskCacheLoader) -> TransactionResult:

        if not self._make_exports_dir(watcher):
            return TransactionResult.fail()

        uninstalled, _ = ProcessHandler(watcher).handle_simple(flatpak.uninstall(pkg.ref, pkg.installation))

        if uninstalled:
            if self.suggestions_cache:
                self.suggestions_cache.delete(pkg.id)

            self.revert_ignored_update(pkg)
            return TransactionResult(success=True, installed=None, removed=[pkg])

        return TransactionResult.fail()
Exemple #3
0
 def uninstall(self, pkg: FlatpakApplication, root_password: str,
               watcher: ProcessWatcher) -> bool:
     return ProcessHandler(watcher).handle(
         SystemProcess(subproc=flatpak.uninstall(pkg.ref)))