From a63eca66cf856656626d09b2c86ede2f949fe51b Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 31 Dec 2018 03:30:24 +0000 Subject: make search only search for binaries, implement hybrid search as an option to search for binaries and/or ebuilds --- src/backend/libsisyphus.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/backend') diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py index b2436c9..8d958ab 100644 --- a/src/backend/libsisyphus.py +++ b/src/backend/libsisyphus.py @@ -196,6 +196,9 @@ def rescueDB(): syncLocalDatabase() def startSearch(pkgList): + subprocess.check_call(['emerge', '--search', '--getbinpkgonly'] + pkgList) + +def startHybridSearch(pkgList): subprocess.check_call(['emerge', '--search', '--getbinpkg'] + pkgList) def startUpdate(): @@ -552,9 +555,9 @@ def showHelp(): print("--hybrid-upgrade") print("* Upgrade the system using binary and/or ebuild (source) packages" + "\n") print("--search") - print("* Search for packages") - print("* In binary mode this will return available binary packages") - print("* In source mode this will return binary and ebuild (source) packages" + "\n") + print("* Search for binary packages" + "\n") + print("--hybrid-search") + print("* Search for binary and/or ebuild (source) packages" + "\n") print("--spmsync") print("* Sync Sisyphus's package database with Portage's package database") print("* When you install something with Portage directly (emerge), Sisyphus is not aware of that package, and it doesn't track it in it's database") -- cgit v1.2.3