diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-08 21:39:33 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-08 21:39:33 +0100 |
commit | 20ada7d84eaa724262565ebca5f9412df35c5406 (patch) | |
tree | edd2c751a50e61bfed85fe877688ff0ec1c02ca5 | |
parent | 4aaf46b25037684158755558b7ccd5e3c626040e (diff) |
simplify
-rwxr-xr-x | src/frontend/cli/sisyphus-cli.py | 12 |
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")): |