diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-09 20:45:02 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-09 20:45:02 +0100 |
commit | c76a29a71d16e9ed512a22945d6e6b77b0d21fb6 (patch) | |
tree | c169e25c9d0fb66f4b6d7aa2c9d1d5950fc49f6c /src/frontend/gui/sisyphus-gui.py | |
parent | bab41785dd6af2ecc88078dd22550b483e7fc776 (diff) |
sisyphus-cli : plug more functions : install, uninstall, forceuninstall, update, upgrade, rescue, spmsync, autoremove - all work
Diffstat (limited to 'src/frontend/gui/sisyphus-gui.py')
-rw-r--r-- | src/frontend/gui/sisyphus-gui.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py index a3f1375..5cc4fc8 100644 --- a/src/frontend/gui/sisyphus-gui.py +++ b/src/frontend/gui/sisyphus-gui.py @@ -245,7 +245,7 @@ class Sisyphus(QtWidgets.QMainWindow): if not self.databaseTable.selectionModel().hasSelection(): self.statusBar().showMessage("No package selected, please pick at least one!") else: - Sisyphus.pkgList = self.getSelectedPackages() + Sisyphus.pkgname = self.getSelectedPackages() self.statusBar().showMessage("I am installing requested package(s), please wait ...") self.installThread.start() @@ -253,7 +253,7 @@ class Sisyphus(QtWidgets.QMainWindow): if not self.databaseTable.selectionModel().hasSelection(): self.statusBar().showMessage("No package selected, please pick at least one!") else: - Sisyphus.pkgList = self.getSelectedPackages() + Sisyphus.pkgname = self.getSelectedPackages() self.statusBar().showMessage("I am removing requested package(s), please wait ...") self.uninstallThread.start() @@ -397,10 +397,10 @@ class MainWorker(QtCore.QObject): @QtCore.pyqtSlot() def startInstall(self): self.started.emit() - pkgList = Sisyphus.pkgList + pkgname = Sisyphus.pkgname binhostURL = sisyphus.binhost.getURL() - areBinaries,areSources,needsConfig = sisyphus.solvedeps.package.__wrapped__(pkgList) #undecorate + 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") @@ -424,7 +424,7 @@ class MainWorker(QtCore.QObject): if os.path.exists(binary.rstrip().split("/")[1]): os.remove(binary.rstrip().split("/")[1]) - portageExec = subprocess.Popen(['emerge', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--misspell-suggestion=n', '--fuzzy-search=n'] + pkgList, stdout=subprocess.PIPE) + portageExec = subprocess.Popen(['emerge', '--usepkg', '--usepkgonly', '--rebuilt-binaries', '--misspell-suggestion=n', '--fuzzy-search=n'] + pkgname, stdout=subprocess.PIPE) # kill portage if the program dies or it's terminated by the user atexit.register(sisyphus.killportage.start, portageExec) @@ -441,8 +441,8 @@ class MainWorker(QtCore.QObject): @QtCore.pyqtSlot() def startUninstall(self): self.started.emit() - pkgList = Sisyphus.pkgList - portageExec = subprocess.Popen(['emerge', '--depclean'] + pkgList, stdout=subprocess.PIPE) + pkgname = Sisyphus.pkgname + portageExec = subprocess.Popen(['emerge', '--depclean'] + pkgname, stdout=subprocess.PIPE) # kill portage if the program dies or it's terminated by the user atexit.register(sisyphus.killportage.start, portageExec) |