From 5fc5276d968a38d05fa5659c06392e83cc428516 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 30 Oct 2022 15:22:22 +0000 Subject: move uninstallAll -> uninstall --- src/backend/uninstallAll.py | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 src/backend/uninstallAll.py (limited to 'src/backend/uninstallAll.py') diff --git a/src/backend/uninstallAll.py b/src/backend/uninstallAll.py deleted file mode 100644 index 617977f..0000000 --- a/src/backend/uninstallAll.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/python3 - -import atexit -import io -import subprocess -import sys -import sisyphus.checkenv -import sisyphus.killemerge -import sisyphus.syncdb - -def cliExec(pkgname): - if sisyphus.checkenv.root(): - portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask'] + list(pkgname)) - portageExec.wait() - sisyphus.syncdb.localTable() - else: - sys.exit("\nYou need root permissions to do this, exiting!\n") - -def cliExecForce(pkgname): - if sisyphus.checkenv.root(): - portageExec = subprocess.Popen(['emerge', '--quiet', '--unmerge', '--ask'] + list(pkgname)) - portageExec.wait() - sisyphus.syncdb.localTable() - else: - sys.exit("\nYou need root permissions to do this, exiting!\n") - -def guiExec(pkgname): - portageExec = subprocess.Popen(['emerge', '--depclean'] + pkgname, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - # kill portage if the program dies or it's terminated by the user - atexit.register(sisyphus.killemerge.cliExec, portageExec) - - for portageOutput in io.TextIOWrapper(portageExec.stdout, encoding="utf-8"): - print(portageOutput.rstrip()) - - portageExec.wait() - sisyphus.syncdb.localTable() -- cgit v1.2.3