diff options
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/gui/sisyphus-gui.py | 34 | ||||
-rw-r--r-- | src/frontend/gui/ui/sisyphus.ui | 14 |
2 files changed, 24 insertions, 24 deletions
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index 5cc4fc8..4e9a8b1 100644 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -93,16 +93,16 @@ class Sisyphus(QtWidgets.QMainWindow): self.upgradeThread.finished.connect(self.jobDone) self.upgradeWorker.finished.connect(self.upgradeThread.quit) - self.orphansButton.clicked.connect(self.orphansRemove) - self.orphansWorker = MainWorker() - self.orphansThread = QtCore.QThread() - self.orphansWorker.moveToThread(self.orphansThread) - self.orphansWorker.started.connect(self.showProgressBar) - self.orphansWorker.started.connect(self.clearProgressBox) - self.orphansThread.started.connect(self.orphansWorker.cleanOrphans) - self.orphansWorker.workerOutput.connect(self.updateStatusBox) - self.orphansThread.finished.connect(self.jobDone) - self.orphansWorker.finished.connect(self.orphansThread.quit) + self.autoremoveButton.clicked.connect(self.autoRemove) + self.autoremoveWorker = MainWorker() + self.autoremoveThread = QtCore.QThread() + self.autoremoveWorker.moveToThread(self.autoremoveThread) + self.autoremoveWorker.started.connect(self.showProgressBar) + self.autoremoveWorker.started.connect(self.clearProgressBox) + self.autoremoveThread.started.connect(self.autoremoveWorker.startAutoremove) + self.autoremoveWorker.workerOutput.connect(self.updateStatusBox) + self.autoremoveThread.finished.connect(self.jobDone) + self.autoremoveWorker.finished.connect(self.autoremoveThread.quit) self.updateSystem() self.progressBar.hide() @@ -261,9 +261,9 @@ class Sisyphus(QtWidgets.QMainWindow): self.statusBar().showMessage("I am upgrading the system, please be patient ...") self.upgradeThread.start() - def orphansRemove(self): + def autoRemove(self): self.statusBar().showMessage("I am busy with some cleaning, please don't rush me ...") - self.orphansThread.start() + self.autoremoveThread.start() def jobDone(self): self.hideProgressBar() @@ -285,14 +285,14 @@ class Sisyphus(QtWidgets.QMainWindow): def hideButtons(self): self.installButton.hide() self.uninstallButton.hide() - self.orphansButton.hide() + self.autoremoveButton.hide() self.upgradeButton.hide() self.exitButton.hide() def showButtons(self): self.installButton.show() self.uninstallButton.show() - self.orphansButton.show() + self.autoremoveButton.show() self.upgradeButton.show() self.exitButton.show() @@ -403,7 +403,7 @@ class MainWorker(QtCore.QObject): areBinaries,areSources,needsConfig = sisyphus.solvedeps.package.__wrapped__(pkgname) #undecorate os.chdir(sisyphus.filesystem.portageCacheDir) - self.workerOutput.emit("\n" + "These are the binary packages that will be merged, in order:" + "\n\n" + str(areBinaries) + "\n\n" + "Total:" + " " + str(len(areBinaries)) + " " + "binary package(s)" + "\n\n") + self.workerOutput.emit("\n" + "These are the binary packages that will be merged, in order:" + "\n\n" + " ".join(areBinaries) + "\n\n" + "Total:" + " " + str(len(areBinaries)) + " " + "binary package(s)" + "\n\n") for index, binary in enumerate([package + '.tbz2' for package in areBinaries]): self.workerOutput.emit(">>> Fetching" + " " + binhostURL + binary) wget.download(binhostURL + binary) @@ -465,7 +465,7 @@ class MainWorker(QtCore.QObject): self.workerOutput.emit("\n" + "Source package upgrades detected; Use sisyphus CLI to perform the upgrade; Aborting." + "\n") else: if not len(areBinaries) == 0: - self.workerOutput.emit("\n" + "These are the binary packages that will be merged, in order:" + "\n\n" + str(areBinaries) + "\n\n" + "Total:" + " " + str(len(areBinaries)) + " " + "binary package(s)" + "\n\n") + self.workerOutput.emit("\n" + "These are the binary packages that will be merged, in order:" + "\n\n" + " ".join(areBinaries) + "\n\n" + "Total:" + " " + str(len(areBinaries)) + " " + "binary package(s)" + "\n\n") os.chdir(sisyphus.filesystem.portageCacheDir) for index, binary in enumerate([package + '.tbz2' for package in areBinaries]): self.workerOutput.emit(">>> Fetching" + " " + binhostURL + binary) @@ -505,7 +505,7 @@ class MainWorker(QtCore.QObject): self.finished.emit() @QtCore.pyqtSlot() - def cleanOrphans(self): + def startAutoremove(self): self.started.emit() portageExec = subprocess.Popen(['emerge', '--depclean'], stdout=subprocess.PIPE) diff --git a/src/frontend/gui/ui/sisyphus.ui b/src/frontend/gui/ui/sisyphus.ui index 23cf906..2831d55 100644 --- a/src/frontend/gui/ui/sisyphus.ui +++ b/src/frontend/gui/ui/sisyphus.ui @@ -196,7 +196,7 @@ </size> </property> <property name="toolTip"> - <string><html><head/><body><p align="center">Install package</p></body></html></string> + <string><html><head/><body><p align="center">Install the selected package(s)</p></body></html></string> </property> <property name="text"> <string/> @@ -222,7 +222,7 @@ </size> </property> <property name="toolTip"> - <string><html><head/><body><p align="center">Uninstall package</p></body></html></string> + <string><html><head/><body><p align="center">Uninstall the selected package(s)</p></body></html></string> </property> <property name="text"> <string/> @@ -248,7 +248,7 @@ </size> </property> <property name="toolTip"> - <string><html><head/><body><p align="center">Upgrade system</p></body></html></string> + <string><html><head/><body><p align="center">Upgrade the system</p></body></html></string> </property> <property name="icon"> <iconset> @@ -263,7 +263,7 @@ </widget> </item> <item> - <widget class="QPushButton" name="orphansButton"> + <widget class="QPushButton" name="autoremoveButton"> <property name="maximumSize"> <size> <width>16777215</width> @@ -271,7 +271,7 @@ </size> </property> <property name="toolTip"> - <string><html><head/><body><p align="center">Remove orphan packages</p></body></html></string> + <string><html><head/><body><p align="center">Uninstall no longer needed package(s)</p></body></html></string> </property> <property name="text"> <string/> @@ -297,7 +297,7 @@ </size> </property> <property name="toolTip"> - <string><html><head/><body><p align="center">Exit Sisyphus</p></body></html></string> + <string><html><head/><body><p align="center">Quit program</p></body></html></string> </property> <property name="icon"> <iconset> @@ -365,7 +365,7 @@ <tabstop>installButton</tabstop> <tabstop>uninstallButton</tabstop> <tabstop>upgradeButton</tabstop> - <tabstop>orphansButton</tabstop> + <tabstop>autoremoveButton</tabstop> <tabstop>exitButton</tabstop> </tabstops> <resources/> |