summaryrefslogtreecommitdiff
path: root/src/backend/installPkg.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-10-26 13:27:42 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-10-26 13:27:42 +0100
commitf2b26188fd4debefb9a93932a919d39bf80be10a (patch)
tree3b54df26b65c718af9a8f0ef82ee5c3fcf9484e4 /src/backend/installPkg.py
parentb51a4c690ccf0353e87211ea4864d49b1c3d5c70 (diff)
rename start && startqt -> cliExec && guiExec
Diffstat (limited to 'src/backend/installPkg.py')
-rw-r--r--src/backend/installPkg.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/installPkg.py b/src/backend/installPkg.py
index 815eeb8..9aa9b51 100644
--- a/src/backend/installPkg.py
+++ b/src/backend/installPkg.py
@@ -15,9 +15,9 @@ import sisyphus.resolveDeps
import sisyphus.syncDatabase
import sisyphus.updateAll
-def start(pkgname):
+def cliExec(pkgname):
if sisyphus.checkEnvironment.root():
- sisyphus.updateAll.start()
+ sisyphus.updateAll.cliExec()
binhostURL = sisyphus.getEnvironment.binhostURL()
areBinaries,areSources,needsConfig = sisyphus.resolveDeps.package(pkgname)
@@ -62,7 +62,7 @@ def start(pkgname):
else:
sys.exit("\nYou need root permissions to do this, exiting!\n")
-def startqt(pkgname):
+def guiExec(pkgname):
binhostURL = sisyphus.getEnvironment.binhostURL()
areBinaries,areSources,needsConfig = sisyphus.resolveDeps.package.__wrapped__(pkgname) #undecorate
@@ -84,7 +84,7 @@ def startqt(pkgname):
portageExec = subprocess.Popen(['emerge', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n'] + pkgname, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
# kill portage if the program dies or it's terminated by the user
- atexit.register(sisyphus.killPortage.start, portageExec)
+ atexit.register(sisyphus.killPortage.cliExec, portageExec)
for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"):
if not "These are the packages that would be merged, in order:" in portageOutput.rstrip():