diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-07 00:34:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-07 00:34:14 +0100 |
commit | 063aa12c7f9eecf2c517d4543e81e15b2a513200 (patch) | |
tree | 38d948f280da16472540ad9e457179b8fd181ff6 /src/frontend/gui/sisyphus-gui.py | |
parent | f932a5fcf6fcc7df65878901b2ced99021dd3ae2 (diff) |
tiny adjustments/fixes, reduce the amount of redundant syncs
Diffstat (limited to 'src/frontend/gui/sisyphus-gui.py')
-rwxr-xr-x | src/frontend/gui/sisyphus-gui.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index ef19995..085006f 100755 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -201,7 +201,7 @@ class Sisyphus(QtWidgets.QMainWindow): AND iv <> av ''' % (Sisyphus.applicationView, Sisyphus.searchTerm, noVirtual)), ]) - with sqlite3.connect(sisyphus_database_path) as db: + with sqlite3.connect(sisyphusDB) as db: cursor = db.cursor() cursor.execute('%s' % (self.SELECTS[Sisyphus.databaseView])) rows = cursor.fetchall() @@ -372,7 +372,6 @@ class MainWorker(QtCore.QObject): def startInstall(self): self.started.emit() pkgList = Sisyphus.pkgList - syncAll() makeLocalDatabaseCSVpre() portageExec = subprocess.Popen( ['emerge', '-q'] + pkgList, stdout=subprocess.PIPE) @@ -387,7 +386,6 @@ class MainWorker(QtCore.QObject): def startUninstall(self): self.started.emit() pkgList = Sisyphus.pkgList - syncAll() makeLocalDatabaseCSVpre() portageExec = subprocess.Popen( ['emerge', '--depclean', '-q'] + pkgList, stdout=subprocess.PIPE) @@ -401,7 +399,6 @@ class MainWorker(QtCore.QObject): @QtCore.pyqtSlot() def startUpgrade(self): self.started.emit() - syncAll() makeLocalDatabaseCSVpre() portageExec = subprocess.Popen( ['emerge', '-uDNq', '--backtrack=100', '--with-bdeps=y', '@world'], stdout=subprocess.PIPE) @@ -415,7 +412,6 @@ class MainWorker(QtCore.QObject): @QtCore.pyqtSlot() def cleanOrphans(self): self.started.emit() - syncAll() makeLocalDatabaseCSVpre() portageExec = subprocess.Popen( ['emerge', '--depclean', '-q'], stdout=subprocess.PIPE) |