summaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-09 04:22:37 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-09 04:22:37 +0100
commitcd8b40c653ff67a55582cc809a30404789b0ed4b (patch)
tree9141c9ea9465521adf39204021c01ea048f7fae6 /src/frontend
parentfa19c308af220472681849a86e883094e38ee4cc (diff)
rewrite install; cleaner API : one entrypoint instead of three, handle keyboard interrupt gracefully
Diffstat (limited to 'src/frontend')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py4
-rw-r--r--src/frontend/gui/sisyphus-gui.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index e273419..76a8cb2 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -131,9 +131,9 @@ def install(pkgname: List[str],
and packages will be installed straight away.
"""
if ebuild:
- sisyphus.install.estart(pkgname, oneshot=oneshot)
+ sisyphus.install.start(pkgname, ebuild=True, gfx_ui=False, oneshot=oneshot)
else:
- sisyphus.install.start(pkgname, oneshot=oneshot)
+ sisyphus.install.start(pkgname, ebuild=False, gfx_ui=False, oneshot=oneshot)
@app.command("uninstall")
def uninstall(pkgname: List[str], force: bool = typer.Option(False, "--force", "-f")):
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py
index 72c6cf7..8b8f451 100644
--- a/src/frontend/gui/sisyphus-gui.py
+++ b/src/frontend/gui/sisyphus-gui.py
@@ -398,7 +398,7 @@ class MainWorker(QtCore.QObject):
def startInstall(self):
self.started.emit()
pkgname = Sisyphus.pkgname
- sisyphus.install.xstart(pkgname)
+ sisyphus.install.start(pkgname, ebuild=False, gfx_ui=True, oneshot=False)
self.finished.emit()
@QtCore.pyqtSlot()