summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-04-08 01:08:53 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-04-08 01:08:53 +0100
commitf730fe0a876965ec656232ef838d7077bf00d89a (patch)
treec9d7dac02f916e5ddc99e0413e560b91822c7d48
parentef5b17b998c70aba6bc10f847cfeeda615325355 (diff)
hook timestamps, run even faster
-rwxr-xr-xsrc/frontend/gui/sisyphus-gui.py12
-rwxr-xr-xsrc/helpers/make_local_csv (renamed from src/helpers/make_local_csv_pre)0
-rwxr-xr-xsrc/helpers/make_local_csv_post8
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