summaryrefslogtreecommitdiff
path: root/src/backend/upgradepkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/upgradepkg.py')
-rw-r--r--src/backend/upgradepkg.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/upgradepkg.py b/src/backend/upgradepkg.py
index b4db8f5..0062bbf 100644
--- a/src/backend/upgradepkg.py
+++ b/src/backend/upgradepkg.py
@@ -15,9 +15,9 @@ import sisyphus.solvedeps
import sisyphus.syncdb
import sisyphus.update
-def cliExec():
+def start():
if sisyphus.checkenv.root():
- sisyphus.update.cliExec()
+ sisyphus.update.start()
binhostURL = sisyphus.getenv.binhostURL()
areBinaries,areSources,needsConfig = sisyphus.solvedeps.world()
@@ -58,7 +58,7 @@ def cliExec():
else:
sys.exit("\nYou need root permissions to do this, exiting!\n")
-def guiExec():
+def startx():
binhostURL = sisyphus.getenv.binhostURL()
areBinaries,areSources,needsConfig = sisyphus.solvedeps.world.__wrapped__() #undecorate
@@ -84,7 +84,7 @@ def guiExec():
portageExec = subprocess.Popen(['emerge', '--quiet', '--verbose', '--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.killemerge.cliExec, portageExec)
+ atexit.register(sisyphus.killemerge.start, portageExec)
for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"):
print(portageOutput.rstrip())