From 100226c624cdf8b3b1210c124b0b1ee6a3b3d816 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 30 Oct 2022 15:54:58 +0000 Subject: various cleanups --- src/backend/installpkg.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/backend/installpkg.py') diff --git a/src/backend/installpkg.py b/src/backend/installpkg.py index 0661831..4dba1e5 100644 --- a/src/backend/installpkg.py +++ b/src/backend/installpkg.py @@ -15,9 +15,9 @@ import sisyphus.solvedeps import sisyphus.syncdb import sisyphus.update -def cliExec(pkgname): +def start(pkgname): if sisyphus.checkenv.root(): - sisyphus.update.cliExec() + sisyphus.update.start() binhostURL = sisyphus.getenv.binhostURL() areBinaries,areSources,needsConfig = sisyphus.solvedeps.package(pkgname) @@ -58,7 +58,7 @@ def cliExec(pkgname): else: sys.exit("\nYou need root permissions to do this, exiting!\n") -def guiExec(pkgname): +def startx(pkgname): binhostURL = sisyphus.getenv.binhostURL() areBinaries,areSources,needsConfig = sisyphus.solvedeps.package.__wrapped__(pkgname) #undecorate @@ -80,7 +80,7 @@ def guiExec(pkgname): portageExec = subprocess.Popen(['emerge', '--quiet', '--verbose', '--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.killemerge.cliExec, portageExec) + atexit.register(sisyphus.killemerge.start, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): print(portageOutput.rstrip()) -- cgit v1.2.3