From fe0a6e47ce7b3a92b298d64d7ea98dcd63cd86d0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 5 Apr 2018 11:25:39 +0100 Subject: convert all functions to camelcase --- src/frontend/gui/sisyphus-gui.py | 66 ++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 33 deletions(-) (limited to 'src/frontend/gui') diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index f52592d..ef4d545 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -378,65 +378,65 @@ class MainWorker(QtCore.QObject): @QtCore.pyqtSlot() def startUpdate(self): self.started.emit() - sisyphus_pkg_system_update() + startUpdate() self.finished.emit() @QtCore.pyqtSlot() def startInstall(self): self.started.emit() pkgList = Sisyphus.pkgList - redcore_sync() - generate_sisyphus_local_packages_table_csv_pre() - portage_call = subprocess.Popen( + syncAll() + makeLocalPkgCSVpre() + portageExec = subprocess.Popen( ['emerge', '-q'] + pkgList, stdout=subprocess.PIPE) - atexit.register(kill_bg_portage, portage_call) - for portage_output in io.TextIOWrapper(portage_call.stdout, encoding="utf-8"): - self.strReady.emit(portage_output.rstrip()) - generate_sisyphus_local_packages_table_csv_post() - sync_sisyphus_local_packages_table_csv() + atexit.register(portageKill, portageExec) + for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): + self.strReady.emit(portageOutput.rstrip()) + makeLocalPkgCSVpost() + syncLocalPkgTable() self.finished.emit() @QtCore.pyqtSlot() def startUninstall(self): self.started.emit() pkgList = Sisyphus.pkgList - redcore_sync() - generate_sisyphus_local_packages_table_csv_pre() - portage_call = subprocess.Popen( + syncAll() + makeLocalPkgCSVpre() + portageExec = subprocess.Popen( ['emerge', '--depclean', '-q'] + pkgList, stdout=subprocess.PIPE) - atexit.register(kill_bg_portage, portage_call) - for portage_output in io.TextIOWrapper(portage_call.stdout, encoding="utf-8"): - self.strReady.emit(portage_output.rstrip()) - generate_sisyphus_local_packages_table_csv_post() - sync_sisyphus_local_packages_table_csv() + atexit.register(portageKill, portageExec) + for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): + self.strReady.emit(portageOutput.rstrip()) + makeLocalPkgCSVpost() + syncLocalPkgTable() self.finished.emit() @QtCore.pyqtSlot() def startUpgrade(self): self.started.emit() - redcore_sync() - generate_sisyphus_local_packages_table_csv_pre() - portage_call = subprocess.Popen( + syncAll() + makeLocalPkgCSVpre() + portageExec = subprocess.Popen( ['emerge', '-uDNq', '--backtrack=100', '--with-bdeps=y', '@world'], stdout=subprocess.PIPE) - atexit.register(kill_bg_portage, portage_call) - for portage_output in io.TextIOWrapper(portage_call.stdout, encoding="utf-8"): - self.strReady.emit(portage_output.rstrip()) - generate_sisyphus_local_packages_table_csv_post() - sync_sisyphus_local_packages_table_csv() + atexit.register(portageKill, portageExec) + for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): + self.strReady.emit(portageOutput.rstrip()) + makeLocalPkgCSVpost() + syncLocalPkgTable() self.finished.emit() @QtCore.pyqtSlot() def cleanOrphans(self): self.started.emit() - redcore_sync() - generate_sisyphus_local_packages_table_csv_pre() - portage_call = subprocess.Popen( + syncAll() + makeLocalPkgCSVpre() + portageExec = subprocess.Popen( ['emerge', '--depclean', '-q'], stdout=subprocess.PIPE) - atexit.register(kill_bg_portage, portage_call) - for portage_output in io.TextIOWrapper(portage_call.stdout, encoding="utf-8"): - self.strReady.emit(portage_output.rstrip()) - generate_sisyphus_local_packages_table_csv_post() - sync_sisyphus_local_packages_table_csv() + atexit.register(portageKill, portageExec) + for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): + self.strReady.emit(portageOutput.rstrip()) + makeLocalPkgCSVpost() + syncLocalPkgTable() self.finished.emit() -- cgit v1.2.3