summaryrefslogtreecommitdiff
path: root/src/backend/forceuninstall.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-09-17 19:12:53 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-09-17 19:12:53 +0100
commite1562a71d6483021d332bccbfc5a3086688bc58c (patch)
tree6be3d468e0aadd6c4de6c4dbd7a58ebe9fd59cbb /src/backend/forceuninstall.py
parent0cf2c9f8ec52b1ae276c1573210d252ab0c4577b (diff)
rearrange the backend
Diffstat (limited to 'src/backend/forceuninstall.py')
-rw-r--r--src/backend/forceuninstall.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/backend/forceuninstall.py b/src/backend/forceuninstall.py
deleted file mode 100644
index 9329695..0000000
--- a/src/backend/forceuninstall.py
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/usr/bin/python3
-
-import subprocess
-import sys
-import sisyphus.check
-import sisyphus.database
-
-def start(pkgname):
- if sisyphus.check.root():
- portageExec = subprocess.Popen(['emerge', '--quiet', '--unmerge', '--ask'] + list(pkgname), stdout=subprocess.PIPE, stderr=subprocess.PIPE)
- stdout, stderr = portageExec.communicate()
- sisyphus.database.syncLocal()
- else:
- sys.exit("\nYou need root permissions to do this, exiting!\n")