From f730fe0a876965ec656232ef838d7077bf00d89a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 8 Apr 2018 01:08:53 +0100 Subject: hook timestamps, run even faster --- src/frontend/gui/sisyphus-gui.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/frontend/gui') diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 13dbda1..f695456 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -372,13 +372,12 @@ class MainWorker(QtCore.QObject): def startInstall(self): self.started.emit() pkgList = Sisyphus.pkgList - makeLocalDatabaseCSVpre() portageExec = subprocess.Popen( ['emerge', '-q'] + pkgList, stdout=subprocess.PIPE) atexit.register(portageKill, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): self.strReady.emit(portageOutput.rstrip()) - makeLocalDatabaseCSVpost() + makeLocalDatabaseCSV() syncLocalDatabaseTable() self.finished.emit() @@ -386,39 +385,36 @@ class MainWorker(QtCore.QObject): def startUninstall(self): self.started.emit() pkgList = Sisyphus.pkgList - makeLocalDatabaseCSVpre() portageExec = subprocess.Popen( ['emerge', '--depclean', '-q'] + pkgList, stdout=subprocess.PIPE) atexit.register(portageKill, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): self.strReady.emit(portageOutput.rstrip()) - makeLocalDatabaseCSVpost() + makeLocalDatabaseCSV() syncLocalDatabaseTable() self.finished.emit() @QtCore.pyqtSlot() def startUpgrade(self): self.started.emit() - makeLocalDatabaseCSVpre() portageExec = subprocess.Popen( ['emerge', '-uDNq', '--backtrack=100', '--with-bdeps=y', '@world'], stdout=subprocess.PIPE) atexit.register(portageKill, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): self.strReady.emit(portageOutput.rstrip()) - makeLocalDatabaseCSVpost() + makeLocalDatabaseCSV() syncLocalDatabaseTable() self.finished.emit() @QtCore.pyqtSlot() def cleanOrphans(self): self.started.emit() - makeLocalDatabaseCSVpre() portageExec = subprocess.Popen( ['emerge', '--depclean', '-q'], stdout=subprocess.PIPE) atexit.register(portageKill, portageExec) for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): self.strReady.emit(portageOutput.rstrip()) - makeLocalDatabaseCSVpost() + makeLocalDatabaseCSV() syncLocalDatabaseTable() self.finished.emit() -- cgit v1.2.3