From 20ada7d84eaa724262565ebca5f9412df35c5406 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 8 Apr 2023 21:39:33 +0100 Subject: simplify --- src/frontend/cli/sisyphus-cli.py | 12 +++--------- 1 file 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")): -- cgit v1.2.3