summaryrefslogtreecommitdiff
path: root/src/frontend/cli/sisyphus-cli.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-09 14:22:24 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-09 14:22:24 +0100
commit0d91cc6b22cebededd3bf66ad594ef0420933aff (patch)
tree8da8a73e2373aeaf92f8a0c0e0d6c0b0ca4e42db /src/frontend/cli/sisyphus-cli.py
parentcd8b40c653ff67a55582cc809a30404789b0ed4b (diff)
rewrite upgrade; cleaner API : one entrypoint instead of three, handle keyboard interrupt gracefully
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 76a8cb2..6ccf587 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -217,10 +217,10 @@ def upgrade(ebuild: bool = typer.Option(False, "--ebuild", "-e")):
The --ebuild option will preffer to reuse binary packages(if available) to satisfy the dependencies for the ebuild(source) packages, speeding up the upgrade.
You can use the --ebuild option even if you don't have any ebuild(source) packages installed; It will fall back to binary packages only.
"""
- if not ebuild:
- sisyphus.upgrade.start()
+ if ebuild:
+ sisyphus.upgrade.start(ebuild=True, gfx_ui=False)
else:
- sisyphus.upgrade.estart()
+ sisyphus.upgrade.start(ebuild=False, gfx_ui=False)
@app.command("spmsync")
def spmsync():