summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-04-08 21:39:33 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-04-08 21:39:33 +0100
commit20ada7d84eaa724262565ebca5f9412df35c5406 (patch)
treeedd2c751a50e61bfed85fe877688ff0ec1c02ca5
parent4aaf46b25037684158755558b7ccd5e3c626040e (diff)
simplify
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 3dce38f..e273419 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -130,16 +130,10 @@ def install(pkgname: List[str],
a depencency, unless they are explicitly added to the 'world' set using 'emerge --noreplace pkgname'. The --oneshot option does not require any confirmation,
and packages will be installed straight away.
"""
- if not oneshot:
- if not ebuild:
- sisyphus.install.start(pkgname, oneshot=False)
- else:
- sisyphus.install.estart(pkgname, oneshot=False)
+ if ebuild:
+ sisyphus.install.estart(pkgname, oneshot=oneshot)
else:
- if not ebuild:
- sisyphus.install.start(pkgname, oneshot=True)
- else:
- sisyphus.install.estart(pkgname, oneshot=True)
+ sisyphus.install.start(pkgname, oneshot=oneshot)
@app.command("uninstall")
def uninstall(pkgname: List[str], force: bool = typer.Option(False, "--force", "-f")):