diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-08 01:08:53 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-08 01:08:53 +0100 |
commit | f730fe0a876965ec656232ef838d7077bf00d89a (patch) | |
tree | c9d7dac02f916e5ddc99e0413e560b91822c7d48 /src | |
parent | ef5b17b998c70aba6bc10f847cfeeda615325355 (diff) |
hook timestamps, run even faster
Diffstat (limited to 'src')
-rwxr-xr-x | src/frontend/gui/sisyphus-gui.py | 12 | ||||
-rwxr-xr-x | src/helpers/make_local_csv (renamed from src/helpers/make_local_csv_pre) | 0 | ||||
-rwxr-xr-x | src/helpers/make_local_csv_post | 8 |
3 files changed, 4 insertions, 16 deletions
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() diff --git a/src/helpers/make_local_csv_pre b/src/helpers/make_local_csv index 91e00bb..91e00bb 100755 --- a/src/helpers/make_local_csv_pre +++ b/src/helpers/make_local_csv diff --git a/src/helpers/make_local_csv_post b/src/helpers/make_local_csv_post deleted file mode 100755 index 438ef64..0000000 --- a/src/helpers/make_local_csv_post +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -makecsv() { - qlist -ICScv|sed -e "s/\//\,/" -e "s/[\t ]/\,/" -e "s/\:/\,/" >> /tmp/localPackagesPost.csv - mv /tmp/localPackagesPost.csv /var/lib/sisyphus/csv/ -} - -makecsv |