summaryrefslogtreecommitdiff
path: root/src/frontend/cli/sisyphus-cli.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-20 10:55:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-20 10:55:55 +0100
commit38d5b810cb5e8400919e1d72c7d3806ee1156a23 (patch)
treedd64aac3209c1a9d1aebf2a5ef55bc56c15da4f7 /src/frontend/cli/sisyphus-cli.py
parent2a492f0415289c5844c186508d265046eccedd1e (diff)
backend : adjust to changed options
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 7b9e858..74cdb2f 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -4,7 +4,6 @@ import sisyphus
import typer
from typing import List
from enum import Enum
-import sys
app = typer.Typer()
mirrorSetup = typer.Typer()
@@ -19,10 +18,6 @@ def app_callback(ctx: typer.Context):
Use 'sisyphus COMMAND --help' for detailed usage.
"""
ctx.info_name = 'sisyphus'
- if not '--help' in sys.argv:
- sisyphus.check.update()
- sisyphus.setjobs.start.__wrapped__() # undecorate
-
@app.command("search")
def search(pkgname: List[str]):
@@ -51,7 +46,7 @@ def install(pkgname: List[str], ebuild: bool = typer.Option(False, "--ebuild", "
if not ebuild:
sisyphus.install.start(pkgname)
else:
- sisyphus.installhybrid.start(pkgname)
+ sisyphus.installebuild.start(pkgname)
@app.command("uninstall")
def uninstall(pkgname: List[str], force: bool = typer.Option(False, "--force", "-f")):
@@ -127,7 +122,7 @@ def upgrade(ebuild: bool = typer.Option(False, "--ebuild", "-e")):
if not ebuild:
sisyphus.upgrade.start()
else:
- sisyphus.upgradehybrid.start()
+ sisyphus.upgradeebuild.start()
@app.command("spmsync")
def spmsync():
@@ -199,4 +194,6 @@ def mirrorset(index: int):
sisyphus.mirror.setActive(index)
if __name__ == "__main__":
+ sisyphus.check.update()
+ sisyphus.setjobs.start.__wrapped__() # undecorate
app()