diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-26 13:27:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-26 13:27:42 +0100 |
commit | f2b26188fd4debefb9a93932a919d39bf80be10a (patch) | |
tree | 3b54df26b65c718af9a8f0ef82ee5c3fcf9484e4 /src/backend/upgradePkg.py | |
parent | b51a4c690ccf0353e87211ea4864d49b1c3d5c70 (diff) |
rename start && startqt -> cliExec && guiExec
Diffstat (limited to 'src/backend/upgradePkg.py')
-rw-r--r-- | src/backend/upgradePkg.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/upgradePkg.py b/src/backend/upgradePkg.py index ccddd99..05d3674 100644 --- a/src/backend/upgradePkg.py +++ b/src/backend/upgradePkg.py @@ -15,9 +15,9 @@ import sisyphus.resolveDeps import sisyphus.syncDatabase import sisyphus.updateAll -def start(): +def cliExec(): if sisyphus.checkEnvironment.root(): - sisyphus.updateAll.start() + sisyphus.updateAll.cliExec() binhostURL = sisyphus.getEnvironment.binhostURL() areBinaries,areSources,needsConfig = sisyphus.resolveDeps.world() @@ -63,7 +63,7 @@ def start(): else: sys.exit("\nYou need root permissions to do this, exiting!\n") -def startqt(): +def guiExec(): binhostURL = sisyphus.getEnvironment.binhostURL() areBinaries,areSources,needsConfig = sisyphus.resolveDeps.world.__wrapped__() #undecorate @@ -89,7 +89,7 @@ def startqt(): portageExec = subprocess.Popen(['emerge', '--update', '--deep', '--newuse', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--backtrack=100', '--with-bdeps=y', '--misspell-suggestion=n', '--fuzzy-search=n', '@world'], 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(): |