summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-09 14:36:02 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-09 14:36:02 +0100
commitbab41785dd6af2ecc88078dd22550b483e7fc776 (patch)
treeb920e0064d28fd0042a7f79812b2a9c8cc592b25 /src
parent27e0407ab61bee10c924182b39f4c3a0b622d420 (diff)
make search work
Diffstat (limited to 'src')
-rw-r--r--src/backend/search.py4
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py10
2 files changed, 7 insertions, 7 deletions
diff --git a/src/backend/search.py b/src/backend/search.py
index 7e5ab2f..c9b5862 100644
--- a/src/backend/search.py
+++ b/src/backend/search.py
@@ -2,5 +2,5 @@
import subprocess
-def start(pkgList):
- subprocess.call(['emerge', '--search', '--getbinpkg'] + pkgList)
+def start(pkgname):
+ subprocess.call(['emerge', '--search', '--getbinpkg'] + list(pkgname))
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 69e95b6..3d7a21f 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -18,6 +18,11 @@ def app_callback():
"""
pass
+@app.command("search")
+def search(pkgname: List[str]):
+ """Search for binary and/or ebuild (source) packages."""
+ sisyphus.search.start(pkgname)
+
@app.command("update")
def update():
"""Update the Portage tree, the Redcore Overlay(s), Portage configs and Sisyphus's package database."""
@@ -59,11 +64,6 @@ def autoremove():
"""
typer.echo("Performing cleanup ... ")
-@app.command("search")
-def install(pkglist: List[str]):
- """Search for binary and/or ebuild (source) packages."""
- [typer.echo(f"Searching for {pkg}") for pkg in pkglist]
-
@app.command("spmsync")
def spmsync():
"""Sync Sisyphus's package database with Portage's package database.